FROM : Corbin Dunn
DATE : Mon Apr 21 19:14:15 2008
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.
corbin
DATE : Mon Apr 21 19:14:15 2008
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.
corbin
| Related mails | Author | Date |
|---|---|---|
| John Stiles | Apr 18, 19:55 | |
| Ben Lachman | Apr 19, 00:11 | |
| John Stiles | Apr 19, 00:28 | |
| John Stiles | Apr 19, 00:37 | |
| Corbin Dunn | Apr 21, 19:14 | |
| John Stiles | Apr 21, 19:43 | |
| Corbin Dunn | Apr 22, 17:50 |






Cocoa mail archive

