NSTableView - setting row heights

2009-06-01 Thread Peter Hudson
Here is the setup ... Table view with 3 columns. In tableView:objectValueForTableColumn:row: I return an NSAttributedString, most of which use 2 different fonts. To set the row height I have implemented the delegate method :- -(float)tableView:(NSTableView *)tableView

Re: NSTableView - setting row heights

2009-06-01 Thread Corbin Dunn
On Jun 1, 2009, at 2:50 AM, Peter Hudson wrote: The problem appears when I try to select a row. Rows are not selectable. When I try to select a row I get the error message NSConcreteMutableAttributedString addAttribute:value:range:: nil value Break on objc_exception_throw and look at the

Re: NSTableView - setting row heights

2009-06-01 Thread Corbin Dunn
Yup -- that makes it tough to figure out with that bt, since the problem doesn't appear to be in your code. Can you post your objectValueXXX method implementation? Can you also show the string in your array that you are setting as the object value? (ie: print it in the debugger or

NSTableView setting row heights

2009-05-31 Thread Peter Hudson
I have a table view with 3 columns. I have implemented the delegate method -tableView:heightForRow: in order to set row height. The height is set correctly, my NSMutableString s are rendered correctly. I can't however select rows in the table view. Any suggestions. Peter

Re: NSTableView setting row heights

2009-05-31 Thread Graham Cox
On 01/06/2009, at 1:33 AM, Peter Hudson wrote: Any suggestions. Post your code? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at