Re: Some questions about the sketch example...
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