Re: make a list
Re: make a list
- Subject: Re: make a list
- From: Sascha Kuehn <email@hidden>
- Date: Fri, 5 Dec 2003 19:26:29 +0100
On 5. Dez 2003, at 19:19 Uhr, Alexander Spohr wrote:
>
+ (NSArray*) convertString:(NSString*) theString;
>
{
>
NSArray *anArray = [theString componentsSeparatedByString:@"\r"];
>
NSMutableArray *aMasterArray = [NSMutableArray array];
>
for(i=0; i<[anArray count]; i++)
here i got an error:
string2list.m:18: error: `i' undeclared (first use in this function)
string2list.m:18: error: (Each undeclared identifier is reported only
once
string2list.m:18: error: for each function it appears in.)
>
{
>
NSString *aString = [anArray objectAtIndex:i];
>
[aMasterArray addObject:[aString componentsSeparatedByString:@"\t"]];
>
}
>
return aMasterArray;
>
}
_______________________________________________
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.