NSTextView question
NSTextView question
- Subject: NSTextView question
- From: Rudi Sherry <email@hidden>
- Date: Thu, 16 Mar 2006 08:28:32 -0800
I have a window with an NSTextView and a button.
I type into the NSTextView, then hit the button. The action of the
method gets the value of the text view with [ mTextView
stringValue ] ... but that is the old value, before I started editing.
I find I have to hit <return> with focus at the NSTextView in order
to have [ mTextView stringValue ] be the edited value. I don't want
to require this behavior.
I tried [ mTextView validateEditing ] (from NSControl) but that
didn't work either -- [ mTextView stringValue ] was still the old value.
How do I get the edited value?
Thanks,
Rudi
_______________________________________________
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