Re: problem getting main bundle inside initWithCoder:
Re: problem getting main bundle inside initWithCoder:
- Subject: Re: problem getting main bundle inside initWithCoder:
- From: "stephen joseph butler" <email@hidden>
- Date: Tue, 22 Apr 2008 03:58:54 -0500
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:
This email sent to email@hidden