• 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: Some questions about the sketch example...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some questions about the sketch example...


  • Subject: Re: Some questions about the sketch example...
  • From: Greg Titus <email@hidden>
  • Date: Sun, 16 Oct 2005 11:07:17 -0700


On Oct 16, 2005, at 10:36 AM, Brian O'Brien wrote:
tchingMask and theEvent = [ourWindow nextEventMatchingMask:NSLeftMouseDraggedMask|NSLeftMouseUpMask];
can be used to fetch events from the event queue without having to exit the mouseDown event. I guess this is pretty easy to implement....
Then you can swallow up the mouse up event or simply not handle it...

Yep.

Should I worry about what happens when the mouse moves out of the window?

As long as the mouse is down, you will still get events even if the mouse moves outside of the window (both this way and via - mouseMoved:, -mouseUp: methods if you use that instead).


Hope this helps,
    -- Greg
_______________________________________________
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


References: 
 >Re: Some questions about the sketch example... (From: Ian was here <email@hidden>)
 >Re: Some questions about the sketch example... (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: WHY search.lists.apple.com is SOO SLOW!!!!
  • Next by Date: Re: Some questions about the sketch example...
  • Previous by thread: Re: Some questions about the sketch example...
  • Next by thread: Re: Some questions about the sketch example...
  • Index(es):
    • Date
    • Thread