Re: Who owns the field editor?
Re: Who owns the field editor?
- Subject: Re: Who owns the field editor?
- From: Jim Correia <email@hidden>
- Date: Wed, 12 Dec 2007 14:21:05 -0500
On Dec 12, 2007, at 2:15 PM, John Stiles wrote:
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.
The field editor's delegate should be the control being edited.
<http://developer.apple.com/documentation/Cocoa/Conceptual/
TextEditing/Tasks/FieldEditor.html>
Jim
_______________________________________________
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