Centering scrollRowToVisible on NSTableView

2010-04-01 Thread Tony P
I'm trying to vertically center a NSTableView row (variable height) using scrollRowToVisible. The default behaviour seems to be displaying at the next-to-last row within the view. After much research, the only way I can see to do this is to calculate row heights for subsequent rows and adju

Single-click words in NSTableView / NSTextFieldCell

2010-04-08 Thread Tony P
Hi Folks, I'm trying to implement single-clicking for multiple words/phrases within an NSTableView / NSTextFieldCell, which seems surprisingly tricky. I've tried using NSAttributedString (in the hope I can use a special NSURLProtocol to intercept the hyperlink), but it takes four clicks t

Re: Single-click words in NSTableView / NSTextFieldCell

2010-04-09 Thread Tony P
. Or perhaps I can't see the wood for the trees? Tony On 8 Apr 2010, at 5:34 pm, Corbin Dunn wrote: On Apr 8, 2010, at 8:17 AM, Tony P wrote: Hi Folks, I'm trying to implement single-clicking for multiple words/phrases within an NSTableView / NSTextFieldCell, which

Where to noteHeightOfRowsWithIndexesChanged

2010-06-15 Thread Tony P
Where's the best place to put noteHeightOfRowsWithIndexesChanged to keep a tableview display correct whilst scrolling? The tableview has variable height rows, and because of a relatively slow data source, resizing and user control of fonts, etc, I don't know the row height in advance. I'm c

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-16 Thread Tony P
Thanks for all the responses folks. On 15 Jun 2010, at 7:22 pm, Corbin Dunn wrote: Do the height calculations in the bounds change, and then call the "noteHeight.." method all in the same run loop stack; that will probably fix your problem. Beautiful, works like a dream. Many, many thanks