• 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: -stringValue on NSTextfield does not reflect actual contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -stringValue on NSTextfield does not reflect actual contents


  • Subject: Re: -stringValue on NSTextfield does not reflect actual contents
  • From: Keary Suska <email@hidden>
  • Date: Sat, 22 Jul 2006 18:26:45 -0600
  • Thread-topic: -stringValue on NSTextfield does not reflect actual contents

on 7/22/06 2:31 PM, email@hidden purportedly said:

> If the user presses return when finished editing, calling -
> stringValue on the text field returns the correct value. However, if
> the user clicks the "OK" button, calling -stringValue returns the
> field's initial value rather than the edited version. I'm stumped as
> to why it does this.

Because when a user is editing field contents in the UI, they are not
actually editing the contents of the NSTextField, but the contents of a
field editor. The field editor doesn't transfer its edited value to the
NSTextField until it is committed, such as by exiting the field.

See:
file://localhost/Developer/ADC Reference Library/documentation/Cocoa/Con
ceptual/TextField/index.html

Esp. regarding the field editor.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >-stringValue on NSTextfield does not reflect actual contents (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: Finding out if an NSArray's contents are all equal
  • Next by Date: Re: Found a bug in Cocoa: where should I report it?
  • Previous by thread: -stringValue on NSTextfield does not reflect actual contents
  • Next by thread: Re: -stringValue on NSTextfield does not reflect actual contents [SOLVED]
  • Index(es):
    • Date
    • Thread