How to change the icon of the created dmg image file

Discussion in 'Mac Programming' started by vnraju, Aug 11, 2007.

  1. vnraju macrumors newbie

    vnraju

    Joined:
    Jun 27, 2007
    #1
    how to change the icon of the "created dmg"(its my own app - creating a dmg image) image file programmatically.......
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    NSWorkspace has a setIcon:forFile:eek:ptions: method.
     
  3. vnraju thread starter macrumors newbie

    vnraju

    Joined:
    Jun 27, 2007
  4. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #4
    You need to add a document type. Select the relevant target in the Xcode project window, Get Info, select the Properties tab, then add the relevant info in the Document Types view at the bottom. Here you can specify a ".dmg" file type, and the icon you wish to use for it.
     

Share This Page