• 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
Who owns the field editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Who owns the field editor?
      • From: Joshua Emmons <email@hidden>
    • Re: Who owns the field editor?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Key Value Observing?
  • Next by Date: Re: Who owns the field editor?
  • Previous by thread: Re: Crash Log with no Relation to where it Crashed
  • Next by thread: Re: Who owns the field editor?
  • Index(es):
    • Date
    • Thread