Re: NSTableView & drop on cell
Re: NSTableView & drop on cell
- Subject: Re: NSTableView & drop on cell
- From: arri <email@hidden>
- Date: Sat, 5 May 2007 15:06:40 +0200
i realise i could narrow the question down to the following:
how can i track regular mouse events in a view/window while drag/
dropping objects onto that view/window?
none of the methods mouseEntered, mouseDragged, mouseMove etc.. are
triggered while validating a drag/drop-action
thanks,
.a
On May 5, 2007, at 2:41 PM, arri wrote:
hoi list,
i'm trying to implement cell-based highlighting in an NSTableView,
but have limited success so far.
also searches online and in documentation haven't been very
successful, so now i hope i'm just looking in the wrong direction
and someone can show me the right one;
the drawing-code is working fine, but so far i've tried to override
'highlightSelectionInClipRect' in a subclassed NSTableView,
and i tried to draw into a separate view/overlay directly from the
table's datasource method
tableView:validateDrop:info:proposedRow:proposedDropOperation, but
both methods only get called when the mouse drags from one ROW to
the other, and NOT when dragging from one COLUMN to the other, with
the result that the highlighting doesn't update when you move
between cells horizontally.
before creating a bruteforce-workaround, what would be the proper/
elegant way to achieve this?
thanks.
arri
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
-----
Scanned for virus and spam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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