• 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
Re: NSSearchField in menu item weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSearchField in menu item weirdness


  • Subject: Re: NSSearchField in menu item weirdness
  • From: Peter Ammon <email@hidden>
  • Date: Tue, 13 May 2008 16:26:10 -0700


On May 13, 2008, at 4:22 PM, Peter Ammon wrote:


On May 13, 2008, at 2:32 PM, Jim Turner wrote:


This never gets called unless I actually click in the search field.
My custom NSView has this as it's implementation of
viewDidMoveToWindow to move the cursor into the field:

-(void) viewDidMoveToWindow
{
	[[self window] makeFirstResponder:searchField];
}

It almost seems like this isn't really making the field the first
responder, at least not in the way that clicking on the field does.
Any thoughts on how to "properly" assign first responder status to a
text field in a view of a NSMenuItem?

Hi Jim,

This is a known bug.

...I meant to follow this up with "and I don't know of good any workaround yet."


-Peter

_______________________________________________

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


References: 
 >NSSearchField in menu item weirdness (From: "Jim Turner" <email@hidden>)
 >Re: NSSearchField in menu item weirdness (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: NSSearchField in menu item weirdness
  • Next by Date: Re: Create NSStrings from a mapped NSData object - safe?
  • Previous by thread: Re: NSSearchField in menu item weirdness
  • Next by thread: Re: Xcode eats 100% CPU and more while typing
  • Index(es):
    • Date
    • Thread