Re: HELP!!! with NSMutableArray
Re: HELP!!! with NSMutableArray
- Subject: Re: HELP!!! with NSMutableArray
- From: Sherm Pendley <email@hidden>
- Date: Wed, 3 Apr 2002 00:10:48 -0500
On Wednesday, April 3, 2002, at 12:04 AM, Chris Roberts wrote:
<snip>
NSMutableArray *myNSM;
while (pathname=[enumer nextObject]){
if([[pathname pathExtension] isEqualToString:@"app"]
{
[enumer skipDescendents];
[myNSM addObject:pathname];
}else{
//do nothing
}
}
printf("count: %d\n", [myNSM count]);
<snip>
If that example is copy-n-pasted from your code, you're not initializing
myNSM.
NSMutableArray *myNSM = [[NSMutableArray alloc] init];
sherm--
_______________________________________________
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.