Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NSMutableArray issue
  2. NSMutableArray *myArray = [[NSMutableArray alloc] initWithObjects:@"recipeA", @"recipeA1", @"recipeA2", @"recipeA3",@"recipeA4",@"recipeA5",@"recipeA6",@"recipeA7",nil];
  3.  
  4. //these both break the app with invalid pointer type warnings
  5. NSLog("What is 0: %@", [myArray objectAtIndex:0]);
  6. NSLog("What is the count: %i", [myArray count]);
  7.        
  8. NSLog(@"What is 0: %@", [myArray objectAtIndex:0]);
  9. NSLog(@"What is the count: %i", [myArray count]);