On Mar 4, 2009, at 9:42 AM, Mark D. Gerl wrote:

Any ideas??? I'm still stuck.


I already pointed out several problems with your code. But let me show you what worked for me:

NSMenu *statusMenu = [[[NSMenu allocWithZone:[NSMenu menuZone]] init] autorelease];
        
_statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength: 25.0] retain];
        [_statusItem setImage:[NSImage imageNamed:...]];
        [_statusItem setMenu:statusMenu];
        [_statusItem setHighlightMode:YES];
        [statusMenu setDelegate:self];

Then the delegate gets -menuNeedsUpdate: messages with no problems.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

Reply via email to