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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to