To get the path to a bundle that's loaded inside an arbitrary process,
I create a stub subclass of NSObject (let's call it MyStubClass) and
simply call [NSBundle bundleForClass: [MyStubClass class]];

This technique is the most straightforward way I know of to accomplish
what you're looking for - it's never failed me. A little precaution
though: to avoid potential conflicts, be sure to name your stub class
something a little more unique than 'MyStubClass' :)

David
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to