• 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: Continuous controls and undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Continuous controls and undo
  • Next by Date: Variadic arguments to methods in Objective-C - How ?
  • Previous by thread: Re: Continuous controls and undo
  • Next by thread: Re: Continuous controls and undo
  • Index(es):
    • Date
    • Thread