• 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: setting the value of a Text View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >setting the value of a Text View (From: Ryan Dary <email@hidden>)

  • Prev by Date: Re: setting the value of a Text View
  • Next by Date: Re: Instantiating window from nib
  • Previous by thread: Re: setting the value of a Text View
  • Next by thread: Client/Server followup
  • Index(es):
    • Date
    • Thread