• 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: Working with icns files in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working with icns files in Cocoa


  • Subject: Re: Working with icns files in Cocoa
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 7 Apr 2005 16:58:46 +0200

At 20:13 Uhr -0400 06.04.2005, Dave Carpeneto wrote:
I see some stuff in NSImage & NSWorkspace for retrieving icons as NSImage objects, however I'm looking for all the goodness in the ICNS format - different images for different sizes / bit depths, image masks ... maybe some routines for slick resizing ...

You can trick the NSImages in NSWorkspace to work that way. You'll have to call setSize: on the image and maybe force a recache and crank up the image interpolation on the current NSGraphicsContext before drawing.


Another option might be IconFamily by Troy Stephens. It also supports editing and writing out icons.

Finally, I've done some work on IconKit, which is a class for icon management in GNUstep and MacOS X. It's not finished, but it should work for your purposes. It calls through to Carbon on MacOS X, but works transparently for Cocoa apps (even has its own NSImageRep for icons). You can check it out in SVN at http://witness.is-a-geek.org:8800/trunk/IconKit/ but no guarantee I won't change the API completely.

Note that IconKit is still copyright by me, as I haven't yet decided on a license (GNUstep is GPL or LGPL, but there are some nice dual-licensing schemes), so if you want to use it, get in touch with me so we can work something out.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSTextView undo doesn't work for attributes? (From: Keith Blount <email@hidden>)
 >Working with icns files in Cocoa (From: Dave Carpeneto <email@hidden>)

  • Prev by Date: Re: Temporarily change the preferred language setting?
  • Next by Date: Re: GNU GPL Controller Layer for Sets
  • Previous by thread: Re: Working with icns files in Cocoa
  • Next by thread: A Question about Bezier Paths..
  • Index(es):
    • Date
    • Thread