editing in a custom NSView

2008-04-18 Thread Torsten Curdt
Hey guys, I need some pointers into the right direction. I would like to create a view that display a list of objects with their attributes. Of course NSTableView could do that. But I would like the rows to expand vertically when I add more information to the object ...and have the

Re: editing in a custom NSView

2008-04-18 Thread Mike Manzano
NSTableView: tableView:heightOfRow: Returns the height of row in tableView. - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row Discussion You should implement this method if your table supports varying row heights. The height returned should not include intercell

Re: editing in a custom NSView

2008-04-18 Thread Jens Alfke
On 18 Apr '08, at 4:32 PM, Torsten Curdt wrote: So I already got a custom view that is manually bound to NSArrayController and draws the objects. Now I need to make one of the object's string attributes editable. How to do that best? I assume I could catch the click on the item, then

controls in a NSTableCell (was Re: editing in a custom NSView)

2008-04-18 Thread Torsten Curdt
Bizarre ...remember I read it somewhere. Well, fair enough. Now got my NSTableView with different row heights working. But how do I get other edit controls in there? Is this the only way to stick a NSView in there? http://www.stepwise.com/Articles/Technical/2003-12-20.01.html Essentially I

Re: editing in a custom NSView

2008-04-18 Thread Torsten Curdt
On Apr 19, 2008, at 03:12, Jens Alfke wrote: On 18 Apr '08, at 4:32 PM, Torsten Curdt wrote: So I already got a custom view that is manually bound to NSArrayController and draws the objects. Now I need to make one of the object's string attributes editable. How to do that best? I assume