• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem getting main bundle inside initWithCoder:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >problem getting main bundle inside initWithCoder: (From: Nick Rogers <email@hidden>)

  • Prev by Date: problem getting main bundle inside initWithCoder:
  • Next by Date: Re: [Ann] DMG Canvas
  • Previous by thread: problem getting main bundle inside initWithCoder:
  • Next by thread: Using OSMemoryBarrier() with KVO
  • Index(es):
    • Date
    • Thread