• 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: Getting NSTextField from NSWindow firstResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSTextField from NSWindow firstResponder


  • Subject: Re: Getting NSTextField from NSWindow firstResponder
  • From: James Spencer <email@hidden>
  • Date: Sat, 29 Nov 2003 16:05:50 -0600

On Nov 29, 2003, at 3:14 PM, Ed Watkeys wrote:

To restate and clarify: since r refers to the shared NSTextView, making it the first responder is doing nothing constructive. I need a way to get from the NSTextView to the NSTextField, so I can put focus back on the UI object that had focus before I called setFirstResponder:. Any help would be appreciated.

I'm probably missing something but why go through all of this. Why not just implement controlTextDidBeginEditing: or some other appropriate delegate method in the delegate and get the relevant field out of the notification. If for some reason that won't work, then install your own text view as the field editor for any fields that you need this information for; you aren't forced to use the shared field editor.

Spence

James P. Spencer
Rochester, MN

email@hidden

"Badges?? We don't need no stinkin badges!"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting NSTextField from NSWindow firstResponder
      • From: Ed Watkeys <email@hidden>
References: 
 >Getting NSTextField from NSWindow firstResponder (From: Ed Watkeys <email@hidden>)

  • Prev by Date: ASKNibConnector class not found
  • Next by Date: search kit document properties
  • Previous by thread: Re: Getting NSTextField from NSWindow firstResponder
  • Next by thread: Re: Getting NSTextField from NSWindow firstResponder
  • Index(es):
    • Date
    • Thread