Hi,
I'm looking for advice on how exactly I should implement the view for a particular type of listing. Basically, which class would best suit my needs. I'd like to have the functionality of NSTableView. I've written several small apps. using them, bindings and non bindings utilised. The issue that arises concerns the fact that the output is not strictly uniform. The program is a disassembler. If anyone remembers or still uses the CodeEditor in ResEdit they'll know exactly what I'm referring to. I need output of a form like so:
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
However, if debugging symbols are present then I will use them, so the output would become:
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <label>
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
<offset> <hex> <opcode> <info> <ascii>
<label>
I could simply place <label> into the cell that would normally contain the <offset>. The problem with this method is that you would be constantly resizing the column width to see the full text of said label. Would it be possible to have some form of custom cell that could be inserted when the need arises? I'm clueless as to how I would go about adding a cell for a situation like this. What I need is a way to override the column width for just that cell. Would a custom formatter for that cell be of any help?
I'd prefer the cell approach to allow extra functionality. Also, I'd like it to be only a single pass to populate all the required cells. I'm expecting to have to do at least one further pass to setup references and the like.
If anyone has any ideas they'd be greatly appreciated.
I've read nothing on CoreData, it's 10.4 only. I'd like it to run on 10.3 systems as a minimum.
Thanks in advance.
Jason.