Skip to content

Instantly share code, notes, and snippets.

@aufflick
Created January 14, 2010 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aufflick/276766 to your computer and use it in GitHub Desktop.
Save aufflick/276766 to your computer and use it in GitHub Desktop.
- (void) testBInsert
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
for (int i=0 ; i < 10 ; i++) {
CJCard *card = [[CJCard alloc] init];
card.name = [NSString stringWithFormat:@"card %d", i];
card.type = CJCARD_OTHER_STRING;
[card commit];
[card release];
}
[pool release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment