• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HELP!!! with NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Bundle patcher
      • From: Jake <email@hidden>
    • Re: HELP!!! with NSMutableArray
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: Malloc() (From: Dan Crevier <email@hidden>)

  • Prev by Date: Re: Fadeing in and out
  • Next by Date: App localization
  • Previous by thread: Re: Malloc()
  • Next by thread: Re: HELP!!! with NSMutableArray
  • Index(es):
    • Date
    • Thread