NSMatrix with drag & drop
NSMatrix with drag & drop
- Subject: NSMatrix with drag & drop
- From: Nick Müller <email@hidden>
- Date: Tue, 12 Feb 2002 12:43:14 +0100
Hi,
I'm somehow lost. 8-/
I want to implement d&d onto a NSMatrix. The cells of the matrix are
subclasses of NSButtonCell. Not all of the cells are enabled and so
aren't valid targets for a drop.
I tried to make a visual response for valid drops. E.g. highlight the
cell the drop-cursor is over etc.
For that I made a number of tracking rects. But first of all, I don't
get mouseEntered while the mouse is clicked. It only works when the
mouse button is released.
So I tried to get the mouse movements with draggingUpdated, but it
seems, that I don't get the location of the mouse.
Can anyone give me a clue how I should have to implement it?
Would it help replacing the NSButtonCells by NSButtons? But this way, I
can't use a NSMatrix which is mandatory.
Draging around and dropping by itself works, I just cant get any clue on
what cell the thingy is/will be dropped onto.
TIA,
Nick
.........................................
logic tools
WebObjects // Web Authoring // Perl
Nick Mueller // Munich // Germany
_______________________________________________
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.