March 8th, 2013 / Nicholas Elliott

Last week, I touched on a tricky implementation of an eventListener. One object could register to receive events by another by implementing the appropriate protocol and then adding itself to an eventListeners array.

The code assumes you are utilizing ARC, the automatic reference counting system implemented in the newer objective-c releases.

February 25th, 2013 / Nicholas Elliott

Today I'd like to explain a solution I've cobbled together for what tends to be a rather common design obstacle. Imagine, if you will, that we're creating a simple game and we're trying to display the main character's stats on screen in some fashion. The exact UI isn't important, so