I’ve been incubating a new IRC client for the past few months, as a way to learn cocoa and gain proficiency over the APIs. I thought I’d share a peek at a finished part of the application that I’m quite proud of; the connections preferences panel.
Browsing the archives for the objective-c tag
In the development of my IRC client, I have used Cocoa Bindings heavily to control my Preferences control panel. In short, I have a tree of classes – a class for an IRC Network (ModelNetwork), a class for an IRC Server (ModelServer) and a class for an IRC Channel (ModelChannel).
NSOutlineView can be a real bitch to work with. If you’re getting stuck, here’s a simple example that uses a tree of objects using an NSDictionary for the root object. It needs some extra features to be truly useful, but you get the idea.
As a part of my Cocoa learning safari, I wrote a Cocoa Framework for IRC client comms. Check it out.