Re: How to control "focus" programmatically
Re: How to control "focus" programmatically
- Subject: Re: How to control "focus" programmatically
- From: Andrei Tchijov <email@hidden>
- Date: Thu, 25 Aug 2005 07:24:03 -0400
Hi James,
Are you saying that in case of "standard" subclasses of NSView
( NSComboBox in my case ) that statement below should work?
Thanks,
Andrei
On Aug 25, 2005, at 01:52, James Chen wrote:
Hi,
What is the Class of X?
for example, if it's a custom subclass of NSView
you might take a look the document about this method, - (BOOL)
acceptsFirstResponder.
Override and return YES.
HTH,
James
On Aug 25, 2005, at 12:53 PM, Andrei Tchijov wrote:
What is a correct way to control "focus"? After reading some
DOCs, I was under impression that following should move focus to
control X
[[ X window ] makeFirstResponder: X ];
It does not. What am I doing wrong?
Thanks,
Andrei Tchijov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden