Posted by dacc
on February 27, 2009
I wanted to make an status indicator bar in Cocoa that I could switch between green, yellow, and red. Here’s how to do it with the NSIndicator control.
First add the control in Interface Builder and configure it as so:

Now you can use a call like the one below to change its color:
[statusIndicator setIntValue: 1]
Here is each value you can use and the corresponding status bar:
Posted by dacc
on February 25, 2009
I’ve been struggling to make the XML build logs in our CruiseControl Dashboard legible, and finally ended up going with an XSLT transform via Greasemonkey.
Even this took a little doing, and so I thought I would share how to perform an arbitrary XSL transform on a loaded XML/XHTML document with a userscript.
Continue reading…
Posted by dacc
on February 20, 2009
I needed to get mod_xslt working under Leopard to pretty up some raw XML CruiseControl logs, and it took a while to get things to build. We’re pretty married to the system Apache, as we use Apple’s groupware and authentication facilities. I ended up having to install some deps, add an include, and hack some Makefiles.
Here’s how…
Continue reading…