• 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: how to retrieve non-string resources in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to retrieve non-string resources in cocoa


  • Subject: Re: how to retrieve non-string resources in cocoa
  • From: John Warner <email@hidden>
  • Date: Tue, 23 Aug 2005 12:44:18 -0400


On Aug 23, 2005, at 7:43 AM, j o a r wrote:


On 23 aug 2005, at 13.33, Ratan Bhangale wrote:


How to retrieve non-string resources  in cocoa using NSBundle API?


Images and such? You find the path using the methods in NSBundle ("pathForResource:ofType:", et.c.), and then you load it using the appropriate class - for example: -[NSImage initWithContentsOfFile:].

For images, that's not necessary, you can use [NSImage imageNamed:@"imageName"]


-John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: how to retrieve non-string resources in cocoa
      • From: j o a r <email@hidden>
References: 
 >how to retrieve non-string resources in cocoa (From: "Ratan Bhangale" <email@hidden>)
 >Re: how to retrieve non-string resources in cocoa (From: j o a r <email@hidden>)

  • Prev by Date: Quick way to get contents of NSTableView as text?
  • Next by Date: NSColor - set vs. setFill
  • Previous by thread: Re: how to retrieve non-string resources in cocoa
  • Next by thread: Re: how to retrieve non-string resources in cocoa
  • Index(es):
    • Date
    • Thread