On 31 Jan 2005, at 4:44 pm, M. Uli Kusterer wrote:
At 15:15 Uhr +0000 31.01.2005, nick briggs wrote:
I wish to disable the 'back boxes' that get drawn around a
NSTableView row during a drag operation.
Do you still want to accept drags, do you still want other kinds of
highlighting or just the boxes around the items?
I remember that there's a method (or parameter to a method) concerned
with drag and drop delegate stuff on table views (see NSTableView.h
for that particular protocol), where you can return the number of the
row to drop below as a side effect in one of the parameters. It may be
as easy as returning the correct value there.
Not sure it'll be that easy to just turn off or change the drop
highlight, though.
It's easy to turn off the "box" highlight (which represents a "drop-on"
operation) and force a "drop above" operation instead. The method
required is -[NSTableView setDropRow:dropOperation:]. You can do it
during drop validation:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden