[Pyobjc-dev] Changing the dock icon
Brought to you by:
ronaldoussoren
From: David C. <da...@ne...> - 2003-01-08 21:58:46
|
I am now trying to change the application's icon in the dock, depending on different conditions. I have found a URL that describes how to do this with Objective C (http://cocoa.mamasam.com/COCOADEV/2002/12/1/51192.php), but I am unsure of how to access the right NSApp to tell it to setApplicationIconImage_ ... and then I assume I pass in an NSImage object which I specified earlier. FYI, I am now using the Python Template Project that comes with pyobjc, so the current code that I'm working in is of class MyAppDelegate (subclassed from AppKit.NibClassBuilder.AutoBaseClass). Thanks, David. |