Tracking changes of first responder
Tracking changes of first responder
- Subject: Tracking changes of first responder
- From: Matthew Weinstein <email@hidden>
- Date: Tue, 13 Jul 2004 09:05:11 -0400
Dear cocoa-xperts,
I've run into a strange problem with handling an NSTextField which
has an action associated with it. The action was intended to be
called when the user filled in some text and hit return. HOWEVER, the
action also seems to be called if the NSTextField loses first
responder status, i.e., if the user clicks on the NSTextView in the
window or a NSTableView in the window. So I'm thinking I need a flag
or something when the first responder status changes that signals the
action to do nothing (but reset the flag) in that case.
The problem is I can't seem to find a delegate method or notification
that goes with changes of firstresponder status... Help!
Must be there (i would guess)
Sincerely, and thanks in advance, Matthew
--
Matthew Weinstein
Associate Professor of Science Education
Kent State University
404D White Hall
KSU
Kent, OH 44242
330-672-0653
email@hidden
http://educ.kent.edu/~mweinste
_______________________________________________
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.