Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application dock icon problem



I wouldn't even bother caring about changing the application's icon when it isn't running. You aren't supposed to make changes to the bundle, and there's no service anywhere that will allow a user to see a different icon on the bundle in the Finder.

From an end-user perspective, it's a bit of a usability concern, anyway. If you change the bundle's icon, and another user looks at it, the second user will see the first user's change, which is likely incorrect from said second user's perspective.


-- Michael Watson

On 14 Jul, 2006, at 14:38, Uli Kusterer wrote:

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


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/mikey-san% 40bungie.org


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Application dock icon problem (From: Aalok <email@hidden>)
 >Re: Application dock icon problem (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.