• 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: Seth Willits <email@hidden>
  • Date: Fri, 9 Apr 2004 23:31:54 -0700

On Apr 9, 2004, at 7:43 PM, Scott Thompson wrote:

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.

I created a tracking rect using addTrackingRect and it's not working. I started another thread on it, but no one replied. I still can't figure it out.


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).

Mmmhmmm...



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

"To be a great is to be misunderstood."
-- Ralph Waldo Emmerson
------------------------------------------------------------------------ ---
_______________________________________________
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.


References: 
 >Dragging Views and Cursor (From: Seth Willits <email@hidden>)
 >Re: Dragging Views and Cursor (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: NSScrollView implements scrollPageDown?
  • Next by Date: Re: Dragging Views and Cursor
  • Previous by thread: Re: Dragging Views and Cursor
  • Next by thread: Re: Dragging Views and Cursor
  • Index(es):
    • Date
    • Thread