First Steps

This first week has been frustrating, to say the least. I spent a few hours just trying to get my new classes to build in the Camino project. Then I started to integrate some of the code from my demo into the Camino code. This was actually not too bad, except for one thing: Camino still runs on 10.4! I knew this somewhere in the back of my mind. But unfortunately it was not something I thought of when I was writing the demo, so I used a few things from the 10.5 api.

One such thing was the foreach loop, but that wasn’t so hard to fix. The big thing was the tableView:dataCellForTableColumn:row: method in the tableview delegate. This is a 10.5-only method

What I ended up doing is subclassing NSCell and using a single column to draw all of the content (favicon, url, title). Typically, each of these values would have its own column, but then the header text would have to fall into one of those columns as well. What I needed was to be able to draw the header text across all columns, and the only way to do that was to make one big column. The result looks identical to the 10.5 implementation:

Header row in Camino popup window

Leave a Reply