Re: Dragging Views and Cursor
Re: Dragging Views and Cursor
- Subject: Re: Dragging Views and Cursor
- From: Scott Thompson <email@hidden>
- Date: Fri, 9 Apr 2004 21:43:06 -0500
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.
Wait... are you calling addCursorRect or are you using addTrackingRect.
The addCursorRect:... method creates something that ONLY allows you to
change the cursor. addTrackingRect, in contrast, creates a rect into
which you can receive mouseEntered/Exited events.
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).
You would use an NSTimer to implement a lovely animation that
repeatedly erases/draws the tab in a new location over some interval
(say a half a second).
_______________________________________________
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.