NSImage Built-In Images Reference

Discussion in 'Mac Programming' started by rossipoo, May 11, 2010.

  1. rossipoo macrumors regular

    Joined:
    Jun 7, 2009
    #1
    Does anyone know of a reference that lists all of the build-in images for Cocoa? For example when you use [NSImage imageNamed:mad:"NSInfo"], you will get an image of an i inside a blue circle. In interface builder, the Media browser lists some of these, though the list is hardly exhaustive. In particular I would like to know the name for the Warning Logo (yellow triangle), although having a whole list would be even better for future reference.

    http://www.makeuseof.com/wp-content/uploads/2009/08/05-Warning_Sign.png
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    They are all listed in the HIG. Unfortunately I don't see the one you want...
     
  3. rossipoo thread starter macrumors regular

    Joined:
    Jun 7, 2009
    #3
    Yes, this is the same list provided by interface builder. I know there are at least some images missing from here for example NSMenuCheckmark.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I suspect that there is a documented "official" list which is what we have with some additional unofficial icons that work. If you want to just open the file for the warning triangle it's at /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns (if you look in that Resources directory most of the core system icons are there).
     
  5. rossipoo thread starter macrumors regular

    Joined:
    Jun 7, 2009

Share This Page