• 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
how to get a particular icon from .icns file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get a particular icon from .icns file


  • Subject: how to get a particular icon from .icns file
  • From: Nick Rogers <email@hidden>
  • Date: Sun, 9 Mar 2008 18:58:26 +0530

Hi,
I have a icon file (.icns) with 10 icons in it and i want to create an NSImage with only the 32x32 icon from this file.


Currently I'm doing:

NSImage *anIcon = [[NSImage alloc] initWithContentsOfFile:iconPath];

which results in a very big 128x128 icon.

Regards,
Nick

_______________________________________________

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: how to get a particular icon from .icns file
      • From: Stéphane Sudre <email@hidden>
    • Re: how to get a particular icon from .icns file
      • From: Michael Watson <email@hidden>
  • Prev by Date: Re: How to get this bundle with identifier
  • Next by Date: Detecting resolution changes?
  • Previous by thread: Re: How to get this bundle with identifier
  • Next by thread: Re: how to get a particular icon from .icns file
  • Index(es):
    • Date
    • Thread