Re: how to retrieve non-string resources in cocoa
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