Re: customizing visual feedback in nstableview
Re: customizing visual feedback in nstableview
- Subject: Re: customizing visual feedback in nstableview
- From: "Mark's Studio" <email@hidden>
- Date: Fri, 19 Mar 2004 08:45:02 +0100
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id
<NSDraggingInfo>)info proposedRow:(int)row
proposedDropOperation:(NSTableViewDropOperation)op
[tv setDropRow:-1 dropOperation:NSTableViewDropOn];
On 18/3-2004, at 22:58, mmalcolm crawford wrote:
>
On Mar 18, 2004, at 11:51 AM, Allan Odgaard wrote:
>
>
>> Is it possible to override the default visual feedback for dropping
>
>> objects onto table views? I would like it to become highlighted
>
>> instead of drawing a black line inbetween cells, since this does not
>
>> make sense with a sorted table view.
>
>
>
> You can use setDropRow:dropOperation: to re-target the drop position.
>
> You should then re-target it to where it fits into the sorted list.
>
>
>
That doesn't actually change the visual feedback.
>
>
There is a private method (so I'd recommend that you don't use it in a
>
shipping application):
>
>
- (void) _drawDropHighlightBetweenUpperRow: (int) parameter1
>
andLowerRow: (int) parameter2 atOffset: (float) parameter3;
>
>
If it is something you could usefully employ, send an enhancement
>
request.
>
>
mmalc
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
>
>
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.