PDA

View Full Version : How to change the icon of the created dmg image file




vnraju
Aug 11, 2007, 08:52 AM
how to change the icon of the "created dmg"(its my own app - creating a dmg image) image file programmatically.......



kainjow
Aug 11, 2007, 10:02 PM
NSWorkspace has a setIcon:forFile:options: method.

vnraju
Aug 13, 2007, 05:41 AM
any more suggestion splzzz

whooleytoo
Aug 13, 2007, 08:03 AM
any more suggestion splzzz

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.