On Dec 13, 2008, at 11:18 AM, Chunk 1978 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.
You'll probably have to use a custom view for that item. Look at the PhotoSearch example code for how to add custom views to a menu.
http://developer.apple.com/samplecode/PhotoSearch/index.html Ashley _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
