Re: setting the value of a Text View
Re: setting the value of a Text View
- Subject: Re: setting the value of a Text View
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 15 Oct 2001 22:42:07 -0700
On Monday, October 15, 2001, at 09:37 PM, Ryan Dary wrote:
I have an NSTextView which I want to assign an NSNumber to. I have
setup
the text view to use a formatter so it displays the number correctly.
How do I assign the NSNumber to the NSTextView so that it uses the
formatter of the NSTextView?
The formatter should get applied if you just use -setIntValue: or
-setFloatValue:.
I'd try it like so:
[mytextView setFloatValue:[myNumber floatValue]];
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.