• 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
Getting a .icns file from IconRef data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a .icns file from IconRef data


  • Subject: Getting a .icns file from IconRef data
  • From: John Brownie <email@hidden>
  • Date: Sat, 17 Nov 2012 12:56:24 +1000

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.

Thanks for pointers to documentation or just how to do it!

John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics      | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea                     | Papua New Guinea
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting a .icns file from IconRef data
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Bugs with parentViewController?
  • Next by Date: Re: Getting a .icns file from IconRef data
  • Previous by thread: IB>Button>Attributes>Position almost works
  • Next by thread: Re: Getting a .icns file from IconRef data
  • Index(es):
    • Date
    • Thread