Re: Loading a localized tiff file: how to?
Re: Loading a localized tiff file: how to?
- Subject: Re: Loading a localized tiff file: how to?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 13 Mar 2002 01:13:26 -0800
On Tuesday, March 12, 2002, at 11:22 PM, Michhle Garoche wrote:
I'm trying to load an NSImage localized to French (the image is kind of
text saved as tiff, so I need localization for it).
Umm, you're making things far too difficult!
Just ensure that the image is localised in Project Builder -- and that
all localised representations of the image in each of the lproj's has
the same name.
Then you can just use NSImage's imageNamed method to retrieve the image.
If you really want to write more code, you could use NSBundle to get the
path to the thing:
imagePath = [[NSBundle mainBundle]
pathForResource:@"hello" ofType:@"png"];
I'll send you a small (43k) example privately.
mmalc
http://www.frontbase.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.