Re: resignFirstResponder called immediately
Re: resignFirstResponder called immediately
- Subject: Re: resignFirstResponder called immediately
- From: "Louis C. Sacha" <email@hidden>
- Date: Wed, 7 Apr 2004 00:27:09 -0700
Hello....
When a text field is being edited, the shared "field editor" object
is used as the first responder, not the text field. Check out the
documentation for the NSWindow method fieldEditor:forObject: for more
information on this.
Depending on what you are trying to do, you also might want to look
at using the delegate methods provided by NSTextField (or the
equivalent NSControl delegate methods) instead:
- textShouldBeginEditing:
- textDidBeginEditing:
- textDidChange:
- textShouldEndEditing:
- textDidEndEditing:
Hope that helps,
Louis
...
When I tab into one of these text fields I get both messages:
2004-04-07 00:02:22.712 MyApp[8922] becomeFirstResponder
2004-04-07 00:02:22.740 MyApp[8922] resignFirstResponder
When I tab out, I get no messages.
The panel containing the text field remains key (frontmost).
Can anyone explain this? It looks like I am doing the same thing as
in Anguish et al page 586.
Thanks,
Don
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.