fill the void

Posts from April 2009

Core Animation on the iPhone

Core Animation makes the iPhone awesome. All the nice visual cues that Apple’s built-in apps gives users are courtesy of Core Animation. How apps jiggle around when I’m moving them. How moving messages in Mail involves a flying message icon and a satisfying blue pulse from the selected folder. How terminated apps shrink into nothingness [...]


Core Animation on the Mac

Core Animation is a fantastic tool in the Cocoa toolkit. It allows developers to add smooth visual animation to their Mac applications. I started playing with Core Animation after listening to Scotty’s Late Night Cocoa podcast, part of the Mac Developer Network, specifically the episode with Bill Dudney. Check out his book, Core Animation for [...]


Leveraging setObjectValue: in an NSTableView

Cocoa Bindings enable views and models to effortlessly exchange data. In an NSTableView bound to an NSArrayController, clicking a checkbox immediately updates the corresponding model instance in the bound array. Conversely, updating the model instance’s bound property will cause the table to refresh its display of that column. Below is a screenshot from Interface Builder [...]


Tips for Xcode and Interface Builder

Just a couple hints for working in Xcode and Interface Builder. Xcode objc_exception_throw: Let’s say I’ve done a perfect job handling exceptions in my application. All the statements that might throw are wrapped in a @try/@catch block. But I get an “unrecognized selector” error in the console, and I have no idea where it came [...]


ibtool: Localization Made Easier

When I wrote the first post on localization, I hadn’t discovered the full power of ibtool or the need for all that power. I figured out how to re-generate the localized XIBs from an English version and a .strings file. But soon, I needed to incrementally incorporate changes from the English XIBs, without blowing away [...]