FROM : Uli Kusterer
DATE : Fri Jul 14 20:38:09 2006
Am 13.07.2006 um 15:49 schrieb Aalok:
> My problem is, when I am in disconnected mode and I quit the
> application, I see the same icon on the screen as my application icon.
> I do change the icon on close with
> [NSApp setApplicationIconImage:[NSImage imageNamed:@"AppIcon"]];
> but it blinks for a second and again comes down to the disconnected
> state icon.
This API call is only intended to change the image displayed in the
dock while your app is running. It's not guaranteed to stick around
after you've quit your application, and it won't change the icon the
Finder displays. If it works for you beyond your app's lifetime,
you're just getting lucky (maybe the dock is cacheing the icon and
the cache doesn't get cleared right away).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
DATE : Fri Jul 14 20:38:09 2006
Am 13.07.2006 um 15:49 schrieb Aalok:
> My problem is, when I am in disconnected mode and I quit the
> application, I see the same icon on the screen as my application icon.
> I do change the icon on close with
> [NSApp setApplicationIconImage:[NSImage imageNamed:@"AppIcon"]];
> but it blinks for a second and again comes down to the disconnected
> state icon.
This API call is only intended to change the image displayed in the
dock while your app is running. It's not guaranteed to stick around
after you've quit your application, and it won't change the icon the
Finder displays. If it works for you beyond your app's lifetime,
you're just getting lucky (maybe the dock is cacheing the icon and
the cache doesn't get cleared right away).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| Aalok | Jul 13, 15:49 | |
| Uli Kusterer | Jul 14, 20:38 | |
| Michael Watson | Jul 14, 21:02 |






Cocoa mail archive

