Can someone tell me why logging [self.giftees count] keeps returning 0 even though I am adding objects to it?
Title:
Called from didFinishLaunchingWithOptions:
- (void)bootstrapGiftees { NSArray *gifteeNames = [NSArray arrayWithObjects:@"Jesse",,nil]; for (NSString *gifteeName in gifteeNames) { GifteeModel *g = [[GifteeModel alloc] init]; g.name = gifteeName; [self.giftees addObject:g]; NSLog(@"giftees count = %d", [self.giftees count]); [g release]; } }
source share