• 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: 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


  • Follow-Ups:
    • Re: Checking if framework exists
      • From: Jeff LaMarche <email@hidden>
References: 
 >Checking if framework exists (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Checking if framework exists
  • Next by Date: Re: Checking if framework exists
  • Previous by thread: Re: Checking if framework exists
  • Next by thread: Re: Checking if framework exists
  • Index(es):
    • Date
    • Thread