Category Archives: Objective-C

Cocos2D, AI, and a simple Asteroids clone

Things have been a bit hectic at work lately and I couldn’t really devote as much time to programming as I would like. That said, I have managed to spend a bit of time taking a detour and learning a … Continue reading

Posted in Cocos2D, Game Dev, Objective-C | 2 Comments

Saving and loading data: NSCoding and NSKeyedArchiver

There are several ways to store data for Cocoa applications. You could implement your own file loading and saving methods and store the data in any number of formats you want, but it’s time-consuming. You could use Cocoa’s built-in database … Continue reading

Posted in Cocoa, Objective-C | Leave a comment

Concepts: Delegation and protocols

One concept that pops up frequently in Cocoa programming is that of delegation. In fact, we’ve already seen that concept in my previous post about NSOutlineView. We set the delegate of our NSOutlineView to be the TodoController. We also set … Continue reading

Posted in Cocoa, Concepts, Objective-C | 1 Comment

Sources lists and NSOutlineView

First up on my list of tasks to perform is to set up the sidebar to display the groups and sections. When choosing from the elements in Interface Builder (IB), there are two options: Outline Views, or Source Lists. An … Continue reading

Posted in Cocoa, Objective-C | Leave a comment