• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dragging Views and Cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Dragging Views and Cursor
      • From: Seth Willits <email@hidden>
References: 
 >Dragging Views and Cursor (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: [OT] Software Piracy
  • Next by Date: Re: [ANN] AppKiDo 0.902
  • Previous by thread: Dragging Views and Cursor
  • Next by thread: Re: Dragging Views and Cursor
  • Index(es):
    • Date
    • Thread