• 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
NSTextField question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField question


  • Subject: NSTextField question
  • From: Aaron Tuller <email@hidden>
  • Date: Tue, 3 Jul 2001 13:20:43 -0700

this seems really weird to me, when you type in an NSTextField and then click on a button, the values do not stick unless you've clicked somewhere else first. example:

I have a textfield called tf and a button called action.

i type in tf and then don't press enter or anything. the control is still in focus, the cursor is blinking after the last character I typed. then I click action, and the value of tf gets erased from the view, all those characters I typed didn't do anything. why not? of course, if I had clicked on another control in the window to get rid of the focus and then clicked action, the text I typed would have been "saved" in the control.

do I really need to implement controlTextDidChange and commit the changes after every key stroke. that doesn't make any sense. what am I missing?

thanks.

-aaron


  • Prev by Date: [ANN] Omni frameworks
  • Next by Date: Re: NSTextView unselects on tab clicks...
  • Previous by thread: Re: [ANN] FDWeakReferencingObject and FDObjectiveMethod
  • Next by thread: Re: Working thread communicating with main thread (was: Threading Issues with Display)
  • Index(es):
    • Date
    • Thread