Who owns the field editor?
Who owns the field editor?
- Subject: Who owns the field editor?
- From: John Stiles <email@hidden>
- Date: Wed, 12 Dec 2007 11:15:05 -0800
I'm trying to figure out which NSTextField in my window is currently
being edited; this is from a callback function and I don't want to
drastically rearchitect the window's code to constantly keep track of
what the user is doing.
I've found that [myWindow firstResponder] returns the field editor, an
NSTextView, instead of the window's NSTextField. This makes sense to me,
but I can't figure out how to turn this information back into my
NSTextField object. I also can't figure out any other way to figure out
who owns the field editor, or what is currently being edited.
Any clues?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden