On Jul 8, 2009, at 9:46 AM, Graham Cox wrote:
- (BOOL)menu:(NSMenu *)menu updateItem:(NSMenuItem *)item atIndex:
(NSInteger)index shouldCancel:(BOOL)shouldCancel
is actually invoked on some sort of background thread/queue, so
implementing these methods (the above + numberOfItemsInMenu:) in
your menu delegate would allow you to update each item with the
attributed title fairly simply and it wouldn't drag your main
thread's performance down.
GREAT catch! I'll have to investigate that one more closely.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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 arch...@mail-archive.com