• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Limitation on an NSStatusBarItem's menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Custom field editor context menu
  • Next by Date: Re: Scrolling Behavior of NSTextView
  • Previous by thread: Re: Custom field editor context menu
  • Next by thread: Debugging sporadic crashes
  • Index(es):
    • Date
    • Thread