Re: Shouldn't be (null) - pathForResource:ofType:inDirectory:forLocalization:
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