Re: NSTextfield focus in contextual menu

2013-01-17 Thread Kyle Sluder
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,

Re: NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
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. Tamas On Jan 17, 2013, at 8:54 PM, Kyle Sluder wrote: > On Thu, Jan 17, 2013, a

Re: NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
Thanks for the info and the tips Kyle! Tamas On Jan 17, 2013, at 8:54 PM, Kyle Sluder wrote: > On Thu, Jan 17, 2013, at 11:38 AM, Tamas Nagy wrote: >> Hi List, >> >> I have an application (10.6>) where are have a contextual menu with an >> NSTextfield. What I'm trying is when I displaying the

Re: NSTextfield focus in contextual menu

2013-01-17 Thread Kyle Sluder
On Thu, Jan 17, 2013, at 11:38 AM, Tamas Nagy wrote: > Hi List, > > I have an application (10.6>) where are have a contextual menu with an > NSTextfield. What I'm trying is when I displaying the menu with [NSMenu > popupContextual…] making the NSTextfield focused, but without luck. > > I tried se

NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
Hi List, I have an application (10.6>) where are have a contextual menu with an NSTextfield. What I'm trying is when I displaying the menu with [NSMenu popupContextual…] making the NSTextfield focused, but without luck. I tried setting [mytextfield becomeFirstResponder] and [mytestfield select