Re: Continuous controls and undo
Re: Continuous controls and undo
- Subject: Re: Continuous controls and undo
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 8 Jan 2005 13:22:46 -0500
Does anyone know if we can rely on the implementation of most Cocoa
continuous controls that they co-op the normal event loop and steal events
until they are done tracking the mouse ?
"NSViews that handle mouse clicks as a single event, from mouse down,
through dragging, to mouse up, must usually short-circuit the application’s
normal event loop, entering a modal event loop to catch and process only
events of interest."
I just posted an undo solution for continuous controls that relies on that
behavior. Ironically, I have often advocated that NeXT/Apple should not
have implemented the controls that way and should have used the normal event
loop to get the -mouseDragged: events. Now I rely on the way they
implemented it.
Apple even has an example of co-opting the normal event loop in the :
http://developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden