Re: Highlight entire table view for drag and drop?
Re: Highlight entire table view for drag and drop?
- Subject: Re: Highlight entire table view for drag and drop?
- From: Corbin Dunn <email@hidden>
- Date: Wed, 16 Aug 2006 14:32:11 -0700
On Aug 16, 2006, at 2:05 PM, Nick Zitzmann wrote:
On Aug 16, 2006, at 2:39 PM, Brian Amerige wrote:
Is it possible to have my entire NSTableView highlight when I have
a drag and drop situation, as opposed to the single black line
under each row?
Sort of.
Well, not "sort of". This is actually the way to do it (the black
square represents the whole as a drop target). Granted, the black
highlight doesn't look particularly good, and that will be addressed.
I assume that is what you mean by "sort of"? If not, please elaborate
and I'll try to address the issue.
How to do it is to use setDropRow, copied from the header:
/* To be used from validateDrop: if you wish to "re-target" the
proposed drop. To specify a drop on the second row, one would specify
row=2, and op=NSTableViewDropOn. To specify a drop below the last row,
one would specify row=[tv numberOfRows], and op=NSTableViewDropAbove.
To specify a drop on the entire tableview, one would specify row=-1
and op=NSTableViewDropOn.
*/
- (void)setDropRow:(NSInteger)row dropOperation:
(NSTableViewDropOperation)op;
-corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden