Re: Dragging Views and Cursor
Re: Dragging Views and Cursor
- Subject: Re: Dragging Views and Cursor
- From: Seth Willits <email@hidden>
- Date: Sat, 10 Apr 2004 12:12:38 -0700
On Apr 10, 2004, at 12:49 AM, Andreas Mayer wrote:
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.
Ok, it seems as if using NSControl and NSCell would work, but it seems
like a totally different concept to use them than my current method.
I'd rather not spend two days to rewrite what I already have at the
moment. I don't see a way to add, remove, or find cells in a control. I
obviously don't understand how the interaction between cells and
controls work, and the concept document is fairly brief. Especially
subclassing.
Using this model, dragging tabs would be a matter of moving cells
inside a single control.
That's all it is in my view model too. Just move views inside of a
single view. I just don't know how to do it.
If you want to live-reorder tabs, acting on mouse release is certainly
to late. :)
Well yes, but that's not what I said. The act on release is simply so
that I can reorder the views in the real tab panel and such, not for
the live reordering.
I _do_ have another control with multiple cells; but there's no
dragging implemented there either.
Could I perhaps see the code to the multiple-cell control so I can see
how I would accomplish this?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
REALbasic Guru at ResExcellence -
http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"All is not gold that glitters."
-- Miguel de Cervantes
------------------------------------------------------------------------
---
_______________________________________________
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.