• 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: CICN resource into NSImage?...familyhandle
      • From: Gore <email@hidden>
References: 
 >CICN resource into NSImage? (From: Gore <email@hidden>)

  • Prev by Date: Re: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
  • Next by Date: NSTimers starting, stopping, pausing...
  • Previous by thread: CICN resource into NSImage?
  • Next by thread: Re: CICN resource into NSImage?...familyhandle
  • Index(es):
    • Date
    • Thread