Re: NSSearchField in menu item weirdness
Re: NSSearchField in menu item weirdness
- Subject: Re: NSSearchField in menu item weirdness
- From: Peter Ammon <email@hidden>
- Date: Tue, 13 May 2008 16:22:51 -0700
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.
And as a somewhat related question, can one programmatically change
the highlighted item in a menu? There doesn't appear to be a
selectMenuItemAtIndex: method...
As always, thanks
No, this isn't possible yet.
Sorry I don't have better news,
-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