Re: Who owns the field editor?
Re: Who owns the field editor?
- Subject: Re: Who owns the field editor?
- From: John Stiles <email@hidden>
- Date: Wed, 12 Dec 2007 11:23:22 -0800
Great, that's easy. Thanks.
I had looked at that document already but didn't see that crucial line.
Out of curiosity, how about when editing a cell in a table view? Is the
field editor's delegate going to be the table view, some mystery NSCell,
or something elseā¦?
Jim Correia wrote:
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