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 07:58:02 +0200
Am 10.04.2004 um 02:29 schrieb Seth Willits:
If you care to see what I've accomplished so far, you can download
this small little sample app:
<http://www.freaksw.com/MultiViewTest.app.sit>
You also need to honor the users appearance preferences. I'm using
Graphite but your control is still Aqua blue.
The close button doesn't work right. When I click in it, move the mouse
outside the button and release it, the tab is removed regardless.
1) Change the cursor to the grabby-hand when the cursor is inside a
tab AND ONLY if the command key is down. I don't see how to do this
since the only cursor methods in NSView is addCursorRect:cursor. There
may be a work around to simply change the global cursor when it
enter/exits the view, but my mouseEntered/Exited events _refuse_ to
fire despite adding a tracking rectangle.
I don't know why your tracking rectangles won't work. But they are
definitely the way to go.
2) During the drag, drawing where the tab would drop or, preferably,
making the tabs move about like toolbar items do when you drag them
around would be extremely nice, but is not necessary. How to either of
these is beyond me (particularly the latter).
I guess this is all handled between the cell's and the view's tracking
methods (like trackMouse:inRect:ofView:untilMouseUp: etc.)
3) When the mouse button is released, get the view which is currently
under the mouse.
I think that's much to late ...
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.