scrolling a readonly cell in NSTableview?

Posted by John Velman on Stack Overflow See other posts from Stack Overflow or by John Velman
Published on 2010-12-26T17:38:52Z Indexed on 2010/12/27 0:53 UTC
Read the original article Hit count: 200

Filed under:
|

I have a table that the user should not be able to edit directly (although user actions may cause changes). One column may contain a string too long for any reasonable size cell, so to see everything there, the user needs to scroll the cell (using arrow keys, for example).

If I make either the column or cell not editible, I loose the ability to scroll the cell. If I make it editable, of course, I loose the ability to keep the user from changeing it.

(I'm using NSArray controller and a couple of NSObject controllers to get from the model to the table view using bindings. Binding compliance via @property(copy) and @synthesize. Updating the model with setXXXX:xxx).

Thanks,

John Velman

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about tableview