Re: Get the package's NSBundle from a plugin
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman