On Nov 16, 2012, at 6:56 PM, John Brownie <[email protected]> wrote:

> If I use TISGetInputSourceProperty to get the kTISPropertyIconImageURL 
> property of a keyboard layout, it returns nil, so I get the 
> kTISPropertyIconRef property, which gives me an IconRef. I can turn that into 
> an NSImage with -initWithIconRef, but what I really want to do is to write 
> out a file in the .icns format. I have not been able to find documentation on 
> how to do that step. Lack of internet access has also complicated things, but 
> a search just now didn't throw up anything that looked helpful.

Look into CGImageDestination (aka ImageIO). If that doesn't help, you might be 
stuck using the old Carbon resource manager functions.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to