• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Who owns the field editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Who owns the field editor?
      • From: Jim Correia <email@hidden>
References: 
 >Who owns the field editor? (From: John Stiles <email@hidden>)
 >Re: Who owns the field editor? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Who owns the field editor?
  • Next by Date: Re: Who owns the field editor?
  • Previous by thread: Re: Who owns the field editor?
  • Next by thread: Re: Who owns the field editor?
  • Index(es):
    • Date
    • Thread