Re: -stringValue on NSTextfield does not reflect actual contents
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