Re: Dragging Views and Cursor
Re: Dragging Views and Cursor
- Subject: Re: Dragging Views and Cursor
- From: Andreas Mayer <email@hidden>
- Date: Sat, 10 Apr 2004 09:49:27 +0200
Am 10.04.2004 um 08:34 schrieb Seth Willits:
Uhh... where's that? What cells?
An NSControl usually has one or more NSCell(s) that do the actual
drawing. Handling of user interaction is divided between both objects.
The control captures mouse events and hands them on to the appropriate
cell for further processing.
Using this model, dragging tabs would be a matter of moving cells
inside a single control.
How is it too late? hitTest does exactly that.
If you want to live-reorder tabs, acting on mouse release is certainly
to late. :)
You can see parts of this control-cell machinery in my AMRollOverButton
project (which is using only one cell per control though).
I _do_ have another control with multiple cells; but there's no
dragging implemented there either.
Andreas
_______________________________________________
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.