Re: How to write a .icns file
Re: How to write a .icns file
- Subject: Re: How to write a .icns file
- From: "Gary L. Wade" <email@hidden>
- Date: Fri, 30 May 2014 19:37:59 -0700
Maybe you could get by just saving those icons that are more modern? You may truly need to keep them, but there's practically no need for 'ICN#' and their like anymore in modern OS X. The most modern ones (especially the retina-based ones) are just wrappers around PNG, JPEG, image file data, anyway.
I haven't read of any limitations like you describe, so maybe it's a bug, possibly a half-Carbon accidental-deprecation (I found this happened for compositing icons).
Since the 'icns' format is well documented, why not make as many subsets as required using ImageIO and then programmatically combine all your 'icns' into a single 'icns'? It's a kludge, but it would work.
If you want to investigate more, maybe see if the 15-image limitation only happens when one of the modern icon formats is present like a retina-based one. Then, that might add fuel to your bug report and/or provide extra info for your 'icns' merge operation.
--
Gary L. Wade (Sent from my iPad)
http://www.garywade.com/
> On May 29, 2014, at 3:38 PM, John Brownie <email@hidden> wrote:
>
> Simplified from the previous question, which didn't get any responses:
>
> How can I write a .icns file when there are 15 images, which is too many for ImageIO to handle? I can get it as an NSImage, but can't see how to write it to a file (or to an NSData object).
>
> 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