HELP!!! with NSMutableArray
HELP!!! with NSMutableArray
- Subject: HELP!!! with NSMutableArray
- From: Chris Roberts <email@hidden>
- Date: Tue, 2 Apr 2002 22:04:20 -0700
I am trying to loop through an directory enumerator and apply the
filename objects to a NSMutableArray.
But the array is not getting the objects added to it ...
HELP!!!
<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>
Chris Roberts
email@hidden
_______________________________________________
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.
References: | |
| >Re: Malloc() (From: Dan Crevier <email@hidden>) |