Re: Checking if framework exists
Re: Checking if framework exists
- Subject: Re: Checking if framework exists
- From: eltima <email@hidden>
- Date: Tue, 06 Sep 2005 14:51:55 +0300
- Organization: Eltima
Check if WebKit is available:
+ (BOOL)isWebKitAvailable
{
static BOOL _webkitAvailable=NO;
static BOOL _initialized=NO;
if (_initialized)
return _webkitAvailable;
NSBundle* webKitBundle;
webKitBundle = [NSBundle
bundleWithPath:@"/System/Library/Frameworks/WebKit.framework"];
if (webKitBundle)
_webkitAvailable = [webKitBundle load];
_initialized=YES;
return _webkitAvailable;
}
I check this in applicationDidFinishLaunching.
Hi everybody,
I'm writing an app which requires MusicKit 5.5 to be installed. As far
as I'm not able to make it embedable, I need a routine to check wether
its frameworks are present on /System/Library/Frameworks; otherwise the
app quits.
How do I implement this ? an where (in awakeFromNib: or init:) ?
Many thanks.
_______________________________________________
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