Re: CICN resource into NSImage?
Re: CICN resource into NSImage?
- Subject: Re: CICN resource into NSImage?
- From: Nathan Day <email@hidden>
- Date: Sat, 11 May 2002 17:02:19 +0930
I think you can convert it into an IconFamilyHandle using carbon calls
then you can then convert it to an NSImage using the IconFamily class at
http://homepage.mac.com/troy_stephens/software/objects/IconFamily/ it
has the methods
+ (IconFamily*)
iconFamilyWithIconFamilyHandle:(IconFamilyHandle)hNewIconFamily;
- (NSImage*) imageWithAllReps;
On Saturday, May 11, 2002, at 01:56 AM, Gore wrote:
How do I load a cicn resource handle into a NSImage ?
It's loaded with this call:
Handle iconH = GetResource( 'cicn', resID );
it is loaded correctly because I can get the correct icon lengh.
But how do I load this into a NSImage to be used in cocoa?
_______________________________________________
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.