• 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: Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization:


  • Subject: Re: Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization:
  • From: Francis Derive <email@hidden>
  • Date: Tue, 14 Aug 2007 13:26:17 +0200

So,

[NSBundle mainBundle] pathForResource:@"DSMainMenu" ofType:@"nib" inDirectory:nil forLocalization:@"French"]

doesn't work,

but

[[NSBundle mainBundle] pathForResource:@"DSMainMenu" ofType:@"nib" inDirectory:@"French.lproj"] does work :

==> /Volumes/[...]/Contents/Resources/French.lproj/DSMainMenu.nib


PS : Checked that these works ( but doesn't deserve much consideration ).


[[NSBundle mainBundle] pathForResource:@"DSMainMenu" ofType:@"nib" inDirectory:@"French.lproj" forLocalization:nil]
or
[[NSBundle mainBundle] pathForResource:@"DSMainMenu" ofType:@"nib" inDirectory:@"French.lproj" forLocalization:@"French.lproj"]


Thanks for your interest,

Francis


On Aug 13, 2007, at 5:02 PM, Francis Derive wrote:

Dear all,

pathForResource:ofType:inDirectory: gives /Volumes/[...]/Contents/ Resources/English.lproj/DSMainMenu.nib and that's fine.

but [[NSBundle mainBundle] pathForResource:@"DSMainMenu" ofType:@"nib" inDirectory:nil forLocalization:@"French"]); gives (null).

I would like the french localization of the same DSMAinMenu.nib file : /Volumes/[...]/Contents/Resources/French.lproj/DSMainMenu.nib.

What "inDirectory" argument to give : nil as I did ? "@"Resources" is obvious for a pathForResource: but doesn'make any better.

Francis

_______________________________________________

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: 
 >Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization: (From: Francis Derive <email@hidden>)

  • Prev by Date: Re: Trying to Love View
  • Next by Date: Re: Newly inserted objects not retrieved with executeFetchRequest...
  • Previous by thread: Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization:
  • Next by thread: NSTreeController and two relations for one entity
  • Index(es):
    • Date
    • Thread