mark the Dock dirty - NSApp setApplicationIconImage
mark the Dock dirty - NSApp setApplicationIconImage
- Subject: mark the Dock dirty - NSApp setApplicationIconImage
- From: Jake Luck <email@hidden>
- Date: Sun, 28 May 2006 21:40:11 -0400 (EDT)
I am updating a cocoa project from 10.2 to the newest version of OS X
and AppKit + Intel. My code used
[NSApp setApplicationIconImage:buf];
to animate the my custom dock icon in a loop, about 20 fps when in
operation. This approach now stalls randomly in the latest 10.4.6,
resulting choppy animation. This sounds similar to :
http://www.cocoabuilder.com/archive/message/cocoa/2005/9/15/146354
My suspicion is that that the Dock is now doing lazy refresh as an
optimization, e.g. this behavior goes away when I have a playing quicktime
movie minimized in the Dock.
How does QuickTime Player mark the Dock "dirty" to request a refresh?
What should I do in my application to get the same effect?
jake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden