Re: Need recommendations for best way to build a custom view

2009-02-20 Thread Ken Tozier
On Feb 19, 2009, at 9:59 PM, Kyle Sluder wrote: And have you set a breakpoint to see if your code is taking that path for all columns? I didn't try breakpoints but the NSLogs do the same thing and indicate that if you assign cells based on nil columns, from that point onward you are neve

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Andreas Mayer
Am 19.02.2009 um 22:17 Uhr schrieb Ken Tozier: I tried writing my own table class from scratch that allows for not just cells but entire views to act in the role of cells in traditional NSTables. This worked to an extent, but one requirement, that projects can each have a different number

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Kyle Sluder
Why did you put the test at the end? I'd do a short-circuit at the top of the method before even asking for the identifier. And have you set a breakpoint to see if your code is taking that path for all columns? --Kyle Sluder ___ Cocoa-dev mailing list

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Ken Tozier
Hmmm. When I add a "nil" column test, the resulting table has the correct number of rows and group rows appear, but it wipes out all the data the cells are supposed to display. By that I mean the table cells are all empty and uneditable. Data only appears in the cells if I remove or commen

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Kyle Sluder
According to the documentation, group rows are treated in delegate methods as belonging to a nil column. You seem only to be testing for actual columns. Not entirely sure about the editing problem; you're making the cell not editable, which is appropriate, but perhaps because you're mistakenly re

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Ken Tozier
Thanks Kyle -tableView:isGroupRow: gets me about 80 percent of the way there, but I'm still having a few issues. - My "tableView:dataCellForTableColumn:row:" method is set up to return data cells correctly (I think) but the project name is editable and I don't want it to be. - The project

Re: Need recommendations for best way to build a custom view

2009-02-19 Thread Kyle Sluder
On Thu, Feb 19, 2009 at 4:17 PM, Ken Tozier wrote: > Seems simple enough but I can't use tables because columns are a single > width and project names are much longer than page numbers. What I end up > with are ridiculously long page number fields to display short numbers like > 1, 2, 3, etc. I ha

Need recommendations for best way to build a custom view

2009-02-19 Thread Ken Tozier
Hi I'm trying to display documents in a specific way but am having a very hard time trying to figure out how to do it with any of Apple's built- in gui widgets. I've tried probably a half dozen different approaches over the last several months, but there doesn't seem to be any Apple widget