aScanner = [NSScanner scannerWithString: testString];
[ aScanner setCharactersToBeSkipped: skipSet]; // skip all letters
and brackets
while (![aScanner isAtEnd])
{
if ([aScanner scanUpToCharactersFromSet: [NSCharacterSet
whitespaceAndNewlineCharacterSet] intoString: &number])
{
[temp addObject: number];
}
}
[skipSet release];
Anyone has a suggestion of a way to do this?
thanks,
- Koen.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden