Some tricks to use for OS X programming