• 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: Standard Alert Note/Warning/Stop icon NSImage Names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standard Alert Note/Warning/Stop icon NSImage Names?


  • Subject: Re: Standard Alert Note/Warning/Stop icon NSImage Names?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 21 Jan 2010 14:32:27 +0100

On 30.08.2009, at 03:45, Nick Zitzmann wrote:
> On Aug 29, 2009, at 6:24 PM, Seth Willits wrote:
>
>> Are the standard alert icons (note, warning, and stop) available through standard image names (like NSApplicationIcon)? They don't seem to be.
>
> There are, and they're available through standard image names. But you have to use IconRef, not NSImage, to get those icons. See IconsCore.h for details.

I know I'm half a year late on this thread, but there is another way:

IIRC, you can use NSFileTypeForHFSTypeCode(), passing in the warning icon constant from Icon Services, and then pass that to NSWorkspace's -iconForFileType:. In that case, at least you'd get an NSImage right away.

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com


_______________________________________________

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

  • Prev by Date: NSRulerView and inches
  • Next by Date: initialize a store with default data core data
  • Previous by thread: Re: NSRulerView and inches
  • Next by thread: initialize a store with default data core data
  • Index(es):
    • Date
    • Thread