Problem: If you have subclassed Application, or are running a command line utility, you may see this when you run your app: Oct 26 19:43:46 Create[3687] *** [3687] Object 0x2c1a468 of class NSException autoreleased with no pool in place - just leaking Oct 26 19:43:46 Create[3687] *** [3687] Object 0x2c1a468 of class NSException autoreleased with no pool in place - just leaking (many times) Solution: Insert your own autorelease pool (PR1): void main(int argc, char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSApp = [AppTextArt sharedApplication]; if ([NSBundle loadNibNamed:@"Create" owner:NSApp]) { [pool release]; [NSApp run]; } [NSApp release]; exit(0); } |