Brian Dunagan

December 6 2008
NSProgressIndicator in NSTableView or NSOutlineView

Spinning wheels (NSProgressIndicator objects in Cocoa) are a common UI element in, well, all software these days. People like to know if applications are busy doing something and, if so, how much longer they'll be. Web browsers, for instance, have continuous spinning wheels to indicate that they're still downloading the requested page and discrete progress bars to show how much of a file they've already downloaded.

In Cocoa, NSProgressIndicator is easily placed into an NSView using Interface Builder, but embedding the object in a list (NSTableView or NSOutlineView) takes a bit of coding. CocoaDev discusses it, but I thought I'd throw together a simple project demonstrating it, pictured above. It's available on Google Code and as a zipped file (Xcode 3.1).

RssBucket on Google Code Key-value observing uses paths, not data
LinkedIn GitHub Email