• 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: a string from an integer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a string from an integer


  • Subject: Re: a string from an integer
  • From: email@hidden
  • Date: Thu, 24 Jul 2003 01:09:37 -0400

Do:

someString = [NSString stringWithFormat:@"%d", someinteger];

On Wednesday, July 23, 2003, at 11:29 PM, Lazee Software wrote:

ok... well
NSString *someString;
int someinteger = 100;

someString =[someinteger stringValue];

does not yield a string which is the number help in someinteger.
Why can't I get a string from a number?

I could just put it in the textfield, then pull it back but that seems like a huge waste of cycles.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Design for Cocoa (was Re: Can a subclass of NSDictionary do this?)
  • Next by Date: Re: time-based beta termination system
  • Previous by thread: Re: a string from an integer
  • Next by thread: Re: Design for Cocoa (was Re: Can a subclass of NSDictionary do this?)
  • Index(es):
    • Date
    • Thread