• 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: Jeff LaMarche <email@hidden>
  • Date: Mon, 15 Oct 2001 22:36:18 -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?


Well, you could do something like this:


assuming these are your variables:
NSTextView *myTextView;
NSNumber *valueToSet;

you could do this:
[myTextView setString:[valueToSet stringValue]];

The formatter should do its thing without any further intervention from you if it's been properly set.


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

  • Prev by Date: Fwd: Displaying special characters
  • Next by Date: Re: setting the value of a Text View
  • Previous by thread: setting the value of a Text View
  • Next by thread: Re: setting the value of a Text View
  • Index(es):
    • Date
    • Thread