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

Re: Finding "myself" in a plugin architecture


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


On Feb 20, 2007, at 8:53 AM, August Trometer wrote:

You could always use:

[[NSBundle bundleForClass:[self class]]

This is something I had thought about, but after a bit of experimentation, it kept returning the framework bundle inside my plugin instead of the plugin itself, so I instead opted for going with the identifier instead.


I was somewhat hoping there would be an easier means of doing this (like a [NSBundle bundleLoadedFrom] or something) but using a "parent identifier" is certainly the easiest route, just needed a big old search and replace :)


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: Shawn Erickson <email@hidden>
References: 
 >Finding "myself" in a plugin architecture (From: "R. Tyler Ballance" <email@hidden>)
 >Re: Finding "myself" in a plugin architecture (From: August Trometer <email@hidden>)

  • Prev by Date: Re: building upon existing screensavers?
  • Next by Date: Re: Finding "myself" in a plugin architecture
  • Previous by thread: Re: Finding "myself" in a plugin architecture
  • Next by thread: Re: Finding "myself" in a plugin architecture
  • Index(es):
    • Date
    • Thread