Basic OSX 10.9/Xcode 6b6 drawing code