Re: Checking if framework exists
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