Category Archives: Cocoa

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