Limitation on an NSStatusBarItem's menu?
Limitation on an NSStatusBarItem's menu?
- Subject: Limitation on an NSStatusBarItem's menu?
- From: augusto callejas <email@hidden>
- Date: Mon, 7 Jun 2010 13:53:47 -0700
hi-
i have an NSMenu attached to a NSStatusBarItem and its being displayed properly,
except for a single NSMenuItem in that menu, which contains as a view with a single
search field:
NSMenuItem* firstItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:@"Test" action:NULL keyEquivalent:@""];
[firstItem setEnabled:YES];
[firstItem setView:searchView];
[firstItem setTarget:self];
[menu addItem:firstItem];
[firstItem release];
whenever i click on the NSSearchField, it doesn't gain focus, it doesn't have a blinking
cursor, and i can't type text into it.
i am able to do this in an NSMenu outside of the status bar though, so i was wondering
if there was a limitation on what a menu can have when attached to a status bar item.
thanks,
augusto._______________________________________________
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