• 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: Initializing an Array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initializing an Array


  • Subject: Re: Initializing an Array
  • From: Jeff Galyan <email@hidden>
  • Date: Tue, 22 Jan 2002 16:19:15 -0700

I looked for an intValue method in NSString, and didn't find it (as of
yesterday). I must be going blind.

--J

On 1/22/02 4:12 PM, "Ondra Cada" <email@hidden> wrote:

> Jeff,
>
>>>>>>> Jeff Galyan (JG) wrote at Tue, 22 Jan 2002 13:30:35 -0700:
> JG> int aNumber;
> JG> [myString getCString:buffer];
> JG> aNumber = (int)strtol( buffer, &tail, 0 );
>
> Apropos, I would rather use intValue and rangeOfCharacterFromSet to reach
> the same goal (so far as I can guess how strtol works) entirely inside Cocoa.
> ---
> Ondra Cada
> OCSoftware: email@hidden http://www.ocs.cz
> 2K Development: email@hidden http://www.2kdevelopment.cz
> private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Initializing an Array
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Initializing an Array (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Embedded database engine in Cocoa?
  • Next by Date: Re: Initializing an Array
  • Previous by thread: Re: Initializing an Array
  • Next by thread: Re: Initializing an Array
  • Index(es):
    • Date
    • Thread