• 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: Get the package's NSBundle from a plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Get the package's NSBundle from a plugin
      • From: Mike <email@hidden>
References: 
 >Get the package's NSBundle from a plugin (From: Mike <email@hidden>)

  • Prev by Date: Get the package's NSBundle from a plugin
  • Next by Date: Re: Get the package's NSBundle from a plugin
  • Previous by thread: Get the package's NSBundle from a plugin
  • Next by thread: Re: Get the package's NSBundle from a plugin
  • Index(es):
    • Date
    • Thread