Re: Standard Alert Note/Warning/Stop icon NSImage Names?
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