• 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: Checking if framework exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking if framework exists


  • Subject: Re: Checking if framework exists
  • From: glenn andreas <email@hidden>
  • Date: Wed, 7 Sep 2005 23:37:23 -0500


On Sep 7, 2005, at 11:23 PM, RameshPVK 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.



Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Widgetarium | the quickest path to widgets

_______________________________________________
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


References: 
 >Re: Checking if framework exists (From: RameshPVK <email@hidden>)

  • Prev by Date: NSView to NSBitmapRep Without an NSWindow?
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 1343
  • Previous by thread: Re: Checking if framework exists
  • Next by thread: iTunes playlist icons
  • Index(es):
    • Date
    • Thread