Adding info plist segment for code signing messes up NSBundle
Adding info plist segment for code signing messes up NSBundle
- Subject: Adding info plist segment for code signing messes up NSBundle
- From: Jim O'Connor <email@hidden>
- Date: Sat, 01 Oct 2011 18:33:06 -0800
I have a helper tool which lives in Contents/MacOS along with the primary binary.
The helper tool needs access to the resources in the bundle.
Once I added the info plist text segment so I could sign the helper tool NSBundle won't work properly. [NSBundle mainBundle] now doesn't refer to the bundle of the primary application. I can't create an NSBundle of the primary application using the path to it, either.
So far, the only things which do work are the class methods which take a path, but I don't get localization of resources in that way.
Is there some way to get the bundle for the actual surrounding app the way I did before I added the info.plist to my helper apps binary?
Thanks,
Jim O'Connor_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden