Re: Get the package's NSBundle from a plugin
Re: Get the package's NSBundle from a plugin
- Subject: Re: Get the package's NSBundle from a plugin
- From: Peter Bierman <email@hidden>
- Date: Thu, 12 Apr 2007 18:18:55 -0700
At 6:01 PM -0700 4/12/07, Mike wrote:
Is there an easy way to get the NSBundle of the .mpkg that contains
a plugin from the plugin's code?
I see the InstallerSection class has a -bundle method but it appears
to return the plugin's bundle, not the bundle of the .mpkg itself.
This also doesn't seem to be mentioned in Software Delivery Guide.
A useful NSBundle trick for plugins everywhere:
[NSBundle bundleForClass:[self Class]]
This should find you the bundle that whatever class you're in came from.
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden