Re: setNeedsDisplay Equivalent for NSMenuItem?
Re: setNeedsDisplay Equivalent for NSMenuItem?
- Subject: Re: setNeedsDisplay Equivalent for NSMenuItem?
- From: "Michael Ash" <email@hidden>
- Date: Sat, 13 Dec 2008 18:07:21 -0500
On Sat, Dec 13, 2008 at 12:18 PM, Chunk 1978 <email@hidden> wrote:
> i've noticed in some menu bar apps like Google's GMail Notifier, the
> time since last email check will display when changed while the menu
> is open. how can i emulate this behavior in my own NSMenuItem that
> changes every 30 seconds (it shows a timer)? currently it will change
> the setTitle of the NSMenuItem, but will only display it's update the
> next time the user opens the menu.
Are you sure that your timer is even executing? By default timers will
not execute when a menu is pulled down. You need to explicitly
schedule it in the event tracking runloop mode for this to happen.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden