(SORRY & IGNORE) Re: How to control "focus" programmatically
(SORRY & IGNORE) Re: How to control "focus" programmatically
- Subject: (SORRY & IGNORE) Re: How to control "focus" programmatically
- From: Andrei Tchijov <email@hidden>
- Date: Thu, 25 Aug 2005 09:02:00 -0400
Sorry, my fault. When I have tried it last night I put the code in
the wrong class. When you put it in right class it does work like a
charm.
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