• 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: String to Integer conversion and vice versa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String to Integer conversion and vice versa


  • Subject: Re: String to Integer conversion and vice versa
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Mon, 12 Jun 2006 19:10:26 +0100

On 12/06/06, John Pannell <email@hidden> wrote:
Hi Aalok-

I think you are looking for the intValue (on NSString) and
stringValue (on NSNumber) methods.

To go from int to string, use [NSString stringWithFormat:@"%d", anInt]

-- Finlay
_______________________________________________
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: 
 >String to Integer conversion and vice versa (From: Aalok <email@hidden>)
 >Re: String to Integer conversion and vice versa (From: John Pannell <email@hidden>)

  • Prev by Date: Re: NSTextView and horizontal scroller?
  • Next by Date: Re: call to numberOfRowsInTableView during initialization
  • Previous by thread: Re: String to Integer conversion and vice versa
  • Next by thread: IB: Maintaining bindings when copying controls
  • Index(es):
    • Date
    • Thread