Re: Finding "myself" in a plugin architecture
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