One Quickie


minimal tool (Random->General)
I got tired of looking for this everytime I make a simple one-off tool without using Project Builder:
#import 
int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    [pool release];

} // main

And you can compile it on the command line with:

cc -o test -framework Foundation file-name.m



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com