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: Update Application Dock Icon




On Nov 18, 2004, at 5:01 PM, David McLeod wrote:

On Nov 18, 2004, at 12:01 PM, Jeff Heyob wrote:

I'm using CodeWarrior to build a MachO app with Carbon API's.
I have just succeeded in using BeginQDContextForApplicationDockTile() and EndQDContextForApplicationDockTile() to overlay a visual alert on my application's dock icon when updates occur in its error log. However, the visual changes to not appear until I force the dock to redraw with dock magnification. I cannot find an API to redraw the dock. I got the idea from Apple's Mail program from its display of the number of unread messages in its inbox, so there must be a way to do it. I hope it is not a Cocoa only capability.


You need to flush.

http://developer.apple.com/samplecode/Tiler

David.

It is always important to practice good hygiene.
This is what I was missing. I need to call it right before EndQDContextForApplicationDockTile();


QDFlushPortBuffer( theTilePort, NULL );

It works great.
Thanks,
Jeff

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

This email sent to email@hidden
References: 
 >Update Application Dock Icon (From: Jeff Heyob <email@hidden>)
 >Re: Update Application Dock Icon (From: David McLeod <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.