• 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 Around A NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging Around A NSScrollView


  • Subject: Re: Dragging Around A NSScrollView
  • From: Seth Willits <email@hidden>
  • Date: Sun, 28 Mar 2004 16:13:45 -0800

On Mar 28, 2004, at 1:52 PM, Eric Huffman wrote:

I have a situation where I use an approach similar to that below.

However, I was wondering if anyone could describe the pros and cons of
using the "mouse-tracking-loop-within mouseDown:" vs. the
"save-state-for mouseDown: and mouseDragged:" approaches. Not being a
cocoa expert, I am never exactly sure which approach to take. The later
approach gives the app kit control over handling the various events,
timers, etc..., that occur during the drag and that seems generally like
a "good thing".

One problem I ran into when using that method was that the scrollview and view inside of it didn't redraw properly. Other than that, I don't know of the pros or cons. I'm sure that whatever they are, they're related to event handling being messed up.




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

"Information is free. Intelligence is a gift."
------------------------------------------------------------------------ ---
_______________________________________________
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: 
 >RE: Dragging Around A NSScrollView (From: "Eric Huffman" <email@hidden>)

  • Prev by Date: Re: [ANN] Shovel - Third-Party "Software Update"
  • Next by Date: Re: NSScrollView how to scroll to top
  • Previous by thread: RE: Dragging Around A NSScrollView
  • Next by thread: Receiving Mouse Moved Events in Views
  • Index(es):
    • Date
    • Thread