Jul 18 2012
Default Defaults
Category: Programming
Tags: NSUserDefaults, preferences

One of the first things I do on starting a new AppKit or UIKit project is add a few lines of code to set default values for NSUserDefaults. You’ll never have to check to see if nil was returned from a call to NSUserDefaults once you do this.Add the following snippet to your application delegate’s finished launching method.

read more…
Jul 5 2012
MacBook Pro GPU Monitoring
Category: Computers
Tags: GPU, MacBook Pro, NetNewsWire

I just found a really great app called gfxCardStatus that works with any 2008 or later MacBook Pro. It is a menu-bar app that shows you which GPU is currently being used. Keeping it down to the Intel GPU decreases the heat generated and increases battery life.

read more…
Jul 4 2012
I love my new MacBook Pro Retina
Category: Apple
Tags: MacBook Pro, benchmarks, retina

just got my Mac Book Pro Retina and without a doubt it is the best computer I’ve every owned. My vision is pretty crappy, and I can’t make out heads or tails on a MacBook Air screen at the default resolution (glasses make no difference). But the MBP retina display is so crisp and sharp that I can even read the text from a few feet away. I had really thought I’d never be able to comfortably view a laptop screen again. I got the 2.6 GHz model with 16GB RAM and a 512GB SSD. And it is a screamer. I ran geekbench on all of my current computers, and the numbers are impressive. All the older machines have a 256GB SSD in them.

read more…
Jul 3 2012
Yojimbo syncing via Dropbox with multiple Macs
Category: Computers
Tags: Dropbox, Yojimbo

Ben Brooks wrote about the problems with using Dropbox and multiple Macs, offering a solution using Keyboard Maestro. Here is the solution I’ve been using for a while. Save the following AppleScript and set it up as a Folder Action in your Dropbox on each machine (you must do it on both machines if you want it to work both ways).

read more…
Oct 13 2011
Sure, wipe out my bookmarks. Thanks, Apple.
Categories: Apple, Programming
Tags: xcode

Earlier today Xcode downloaded a documentation update for Lion. I didn’t think anything of it, until I needed to look up something. All of a sudden, none of my bookmarks in Xcode work!

read more…
Sep 11 2011
Some of us remember 9/11 everyday
Category: Personal
Tags: 9/11, media

I purposely avoided ground zero this weekend. I would have liked to visit on my first trip back to NYC in almost six years, but it will always be a deeply personal affair for me, one I can’t share with the callous, sensationalistic press and disgusting politicians faking tears for votes.

read more…
Mar 24 2011
OmniGraffle Line Endings
Category: Computers
Tags: AppleScript

I was wondering what some of the line endings in OmniGraffle were called, but I couldn’t find them documented anywhere in the Manual or even via a Google search. So I made up this list using OmniGraffle.

read more…