PDA

View Full Version : Changing Application Icon in Dock at runtime




satyam90
Nov 21, 2007, 07:24 AM
HI, WHEN I AM RUNNING MY APPLICATION, MY APPLICATION'S ICON IS SHOWN IN DOCK. I WANT TO CHANGE THE ICON FROM MY APPLICATION DEPENDING UPON THE STATUS OF MY APPLICATION LIKE "One icon when it is IDLE", "Another Icon when it is transferring data", "Another Icon when it is Active" like that.........How to change the icon of my application in Dock programatically?

Regards,
satyam.



robbieduncan
Nov 21, 2007, 07:50 AM
Please learn where the caps lock button is and what it does.

Then learn to read the documentation. It's all right there (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/setApplicationIconImage:)