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

Re: Getting a .icns file from IconRef data


  • Subject: Re: Getting a .icns file from IconRef data
  • From: John Brownie <email@hidden>
  • Date: Sat, 17 Nov 2012 15:29:50 +1000

Ken Thomases wrote:
On Nov 16, 2012, at 9:20 PM, Kyle Sluder wrote:

Look into CGImageDestination (aka ImageIO). If that doesn't help, you might be stuck using the old Carbon resource manager functions.
You don't need the Resource Manager.  There's the Icon Family API for this: SetIconFamilyData().

You should be aware that a bug was introduced to Snow Leopard with its last major update (10.6.8), such that the CGImageDestination API produces corrupt ICNS files.  So, if you are maintaining compatibility with that version of the OS, you probably want to use the Icon Family API instead, even though it's obsolete and deprecated.

Thanks, this is what I needed. I'm targetting 10.7, so CGImageDestination is what I want. IconRef -> NSImage ->CGImageDestination seems to work, at least from a quick test.

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

References: 
 >Getting a .icns file from IconRef data (From: John Brownie <email@hidden>)
 >Re: Getting a .icns file from IconRef data (From: Kyle Sluder <email@hidden>)
 >Re: Getting a .icns file from IconRef data (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: WWDC videos vs. slides?
  • Next by Date: Re: Bugs with parentViewController?
  • Previous by thread: Re: Getting a .icns file from IconRef data
  • Next by thread: Re: Getting a .icns file from IconRef data
  • Index(es):
    • Date
    • Thread