On Tue, Apr 22, 2008 at 3:35 AM, Nick Rogers <email@hidden> wrote:
> // The last parameter is the name of a ".strings" file that
> contains the localised prompts
> // for any custom rights that we use.
> CFStringRef bundleID =
> CFBundleGetIdentifier(CFBundleGetMainBundle());
> //*** I'm getting correct bundleID here
> //*** but the following code fails and bundle is nil after
> this
> CFBundleRef bundle =
> CFBundleGetBundleWithIdentifier(bundleID);// fails
> // more code here
I don't know why CFBundleGetBundleWithIdentifier is failing. However, if the
goal was to get the CFBundleRef for the main bundle, why not just use the
return value of CFBundleGetMainBundle?
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden