Re: Dragging Around A NSScrollView
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.