Re: Initializing an Array
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