• 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: CICN resource into NSImage?...familyhandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CICN resource into NSImage?...familyhandle


  • Subject: Re: CICN resource into NSImage?...familyhandle
  • From: Gore <email@hidden>
  • Date: Sun, 12 May 2002 01:38:44 +0300

I have tried to convert the cicn resource into a familyhandle but didn't get the convert to work. Anyone know how to convert a cicn resource into a family handle? or know another way to do this?


On Saturday, May 11, 2002, at 10:32 , Nathan Day wrote:

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.

References: 
 >Re: CICN resource into NSImage? (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: SymLink duplicating troubles
  • Next by Date: Re: How to implement drag-drop onto application icon
  • Previous by thread: Re: CICN resource into NSImage?
  • Next by thread: REPOST: Dynamic Library & UNloading Resource Bundles...
  • Index(es):
    • Date
    • Thread