• 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: combining strings with floats into an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: combining strings with floats into an NSTextView


  • Subject: Re: combining strings with floats into an NSTextView
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 20 Feb 2005 09:12:36 -0500

[NSString stringWithFormat:@"The result is: %f", yourFloat]

Jonathan

On Feb 20, 2005, at 6:51 AM, dor kelman wrote:

hello, i am trying to do some calculations with floats and enter it into an NSTextView along with a string that explains the outcome of my calculation. i cant seem to figure out how to convert the float into a string. once i know how to do that i will just use the stringByAppendingString method. is this even the correct and most efficient way of doing this. i have been struggling with this all day. please help me. _______________________________________________
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

_______________________________________________ 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
References: 
 >combining strings with floats into an NSTextView (From: "dor kelman" <email@hidden>)

  • Prev by Date: Re: equivalent of the "X Selection" for cocoa apps?
  • Next by Date: Notifying NSBrowser of changed contents
  • Previous by thread: combining strings with floats into an NSTextView
  • Next by thread: Localizing hierarchical plist information?
  • Index(es):
    • Date
    • Thread