Skip navigation.
 
mlRe: NSTableView -editColumn:row:withEvent:select: question
FROM : John Stiles
DATE : Mon Apr 21 19:43:05 2008

Corbin Dunn wrote:
>
> On Apr 18, 2008, at 3:37 PM, John Stiles wrote:

>>>
>>> Ben Lachman wrote:
>>> > Well, you should be able to just override the drawing code, since
>>> > thats really your problem.  Going directly against the docs, while
>>> it > may work fine now, is playing with fire in my opinion.
>>> Yeah… that's why I posted :) I was hoping to get a "oh yeah, that
>>> only applies if [...], file a radar on the docs" or something.
>>>

>> I decided that, no matter what, the docs are definitely not right,
>> because they claim that an exception will be thrown even though that
>> clearly does not happen. So I filed a radar; we'll see if anything
>> comes back.
>>
>> rdar://5875017  [Docs] -editColumn:row:withEvent:select: needs
>> clarification

>
> The docs are wrong. The row doesn't have to be selected before you
> call editColumn:. The row has to be selected before NSTableView will
> call editColumn:. If you are calling it yourself at the appropriate
> time, then that is a-okay.
>
> In effect, another way to get what you want is to override selection
> drawing and to not draw selection. So, tableview still has a selected
> row, but it just doesn't show up selected.


Excellent. Thanks for the clarification, it's much appreciated!!

(How do you override selection drawing? Reimplement
-highlightSelectionInClipRect:? Not that I think I need to, I'm just
curious.)

Related mailsAuthorDate
mlNSTableView -editColumn:row:withEvent:select: question John Stiles Apr 18, 19:55
mlRe: NSTableView -editColumn:row:withEvent:select: question Ben Lachman Apr 19, 00:11
mlRe: NSTableView -editColumn:row:withEvent:select: question John Stiles Apr 19, 00:28
mlRe: NSTableView -editColumn:row:withEvent:select: question John Stiles Apr 19, 00:37
mlRe: NSTableView -editColumn:row:withEvent:select: question Corbin Dunn Apr 21, 19:14
mlRe: NSTableView -editColumn:row:withEvent:select: question John Stiles Apr 21, 19:43
mlRe: NSTableView -editColumn:row:withEvent:select: question Corbin Dunn Apr 22, 17:50