Drag-n-Drop to NSButtonCells in a NSMatrix?
Drag-n-Drop to NSButtonCells in a NSMatrix?
- Subject: Drag-n-Drop to NSButtonCells in a NSMatrix?
- From: David H <email@hidden>
- Date: Tue, 2 Jul 2002 19:52:18 +1000
Hi everyone, I'm having a problem with drag-n-drop to elements in a
NSMatrix. The target is a NSMatrix full of NSButtonCell objects, and I
wish to be able to drag-n-drop NSStringPboardType objects to individual
NSButtonCell objects in the NSMatrix.
I have subclassed NSMatrix and overridden performDragOperation: to make
the NSMatrix receive NSStringPboardType objects. But it seems all I have
done is allow the NSMatrix to receive drag-n-drop operations, but not
the individual NSButtonCells. Ideally I wish to be able to drag and drop
to individual NSButtonCells in the NSMatrix, but I can't seem to be able
to find a way to do so.
Is there a way for NSMatrix to determine which NSButtonCell the mouse is
currently hovering over? Or a way for the NSButtonCells to be the
receivers of the drag-n-drop operations? The application is a calendar
type program, where each individual NSButtonCell represents a day of a
month. I wish for the user to be able to drag-n-drop text into the days
of the month.
Any help would be appreciated, thanks.
David
_______________________________________________
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.