• 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: Loading a localized tiff file: how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Loading a localized tiff file: how to? (From: Michèle Garoche <email@hidden>)

  • Prev by Date: Terminating app when threads are running
  • Next by Date: Re: Loading a localized tiff file: how to?
  • Previous by thread: Re: Loading a localized tiff file: how to?
  • Next by thread: Re: Loading a localized tiff file: how to?
  • Index(es):
    • Date
    • Thread