Re: NSTableView -editColumn:row:withEvent:select: question
Re: NSTableView -editColumn:row:withEvent:select: question
- Subject: Re: NSTableView -editColumn:row:withEvent:select: question
- From: Corbin Dunn <email@hidden>
- Date: Mon, 21 Apr 2008 10:14:15 -0700
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden