Re: HELP!!! with NSMutableArray
Re: HELP!!! with NSMutableArray
- Subject: Re: HELP!!! with NSMutableArray
- From: Chris Roberts <email@hidden>
- Date: Tue, 2 Apr 2002 22:31:39 -0700
Thanks! That is what I forgot It is late and the code looks like just
wiggles.
Chris Roberts
On Tuesday, April 2, 2002, at 10:10 PM, Sherm Pendley wrote:
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.
_______________________________________________
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.