Re: NSTextfield focus in contextual menu
Re: NSTextfield focus in contextual menu
- Subject: Re: NSTextfield focus in contextual menu
- From: Kyle Sluder <email@hidden>
- Date: Thu, 17 Jan 2013 18:48:29 -0800
On Thu, Jan 17, 2013, at 12:07 PM, Tamas Nagy wrote:
> Well, I came up with a solution. I subclassed NSTextfield with
>
> -(void)viewDidMoveToWindow {
>
> [self selectText:self];
> }
>
> and no it works as expected. When the menu pops out, the focus is on the
> textfield.
Glad it works, but don't forget to call super here.
Also, please file a bug asking for a true view-based menu implementation
so that such user interfaces are more reliable in future operating
systems. Without bugs, the Apple folks can't know who's trying to push
the system in certain directions.
--Kyle Sluder
_______________________________________________
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