• 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
Re: HELP!!! with NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: HELP!!! with NSMutableArray (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: HELP!!! with NSMutableArray
  • Next by Date: Re: Toplevel Objects in NIB files
  • Previous by thread: Re: HELP!!! with NSMutableArray
  • Next by thread: Bundle patcher
  • Index(es):
    • Date
    • Thread