• 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
Finding "myself" in a plugin architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding "myself" in a plugin architecture


  • Subject: Finding "myself" in a plugin architecture
  • From: "R. Tyler Ballance" <email@hidden>
  • Date: Tue, 20 Feb 2007 08:44:45 -0600

I'm following the Code Loading Programming Topics guide to work on implementing a relatively basic plugin architecture for an application of mine. The one thing that I "can't" seem to do is "find myself" from the plugin's perspective.

Insofar as [NSBundle mainBundle] will return the main application bundle. Is there a way that I'm missing that I can find "my" bundle from inside the plugin's code itself? So I can access my own Info.plist file, among other things. Any ideas?

While I could use [NSBundle bundleWithIdentifier] that's a bit too case-centric in that this "dumb" bit of code would have to know what the identifier of the bundle is that it's being loaded in is, as opposed to using reflection (eeek) and discovering this at runtime.


Cheers R. Tyler Ballance: Lead Mac Developer at bleep. software contact: email@hidden | jabber: email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finding "myself" in a plugin architecture
      • From: Keith Duncan <email@hidden>
    • Re: Finding "myself" in a plugin architecture
      • From: Brian Stern <email@hidden>
    • Re: Finding "myself" in a plugin architecture
      • From: August Trometer <email@hidden>
  • Prev by Date: Building Interface logic via IB
  • Next by Date: Re: Finding "myself" in a plugin architecture
  • Previous by thread: Re: Building Interface logic via IB
  • Next by thread: Re: Finding "myself" in a plugin architecture
  • Index(es):
    • Date
    • Thread