One Quickie


Easy command-line argument handling (General->General)
You can use NSUserDefaults to sniff your command line. So using something like this:
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    gridType = [defaults objectForKey: @"gridType"];
Will have the value of "flarn" whether you do something like
% defaults write com.borkware.BorkStitch gridType flarn
or
% ./build/Debug/BorkStitch.app/Contents/MacOS/BorkStitch -gridType flarn



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

webmonster@borkware.com