• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 2, Issue 1343
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 2, Issue 1343


  • Subject: Re: Cocoa-dev Digest, Vol 2, Issue 1343
  • From: RameshPVK <email@hidden>
  • Date: Thu, 8 Sep 2005 11:00:07 +0530

Hi All,
Yes, thats right gandreas. I had mistaken . [NSBundle bundleWithIdentifier] returns the bundle only if it is included in the project. I tried just now.
Sorry for the inconvenience.


Thanks,
Ramesh

On 08-Sep-05, at 10:12 AM, email@hidden wrote:



Hi,

    Yes, you can do this. Everything in Mac OS is a bundle. For ex,
applications , frameworks , palette etc. And each bundle has an
identifier which should be unique. In your case , the framework you
want to check must have a unique identifier. So you can check if
that framework bundle exits or not using the method : [NSBundle
bundleWithIdentifier]; It will check in all the possible locations.



No, it doesn't:


Returns the previously created NSBundle instance that has the
bundle identifier identifier. The instance must currently exist.
Returns nil if the requested bundle is not found.


Note the key phrase "previously created ... instance" - i.e., you've already explicitly or implicitly loaded it into your application - it won't search your hard drive at all for it, it just finds what has already been loaded into your application.


RameshPVK email@hidden effigent India Pvt Ltd.

PH :  (91) 09885187033



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Checking if framework exists
  • Next by Date: Re: Undoable controls
  • Previous by thread: Re: NSView to NSBitmapRep Without an NSWindow?
  • Next by thread: NSOutlineView upside down
  • Index(es):
    • Date
    • Thread