• 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: "Brian O'Brien" <email@hidden>
  • Date: Sun, 16 Oct 2005 11:36:09 -0600


On 16-Oct-05, at 10:41 AM, Ian was here wrote:

That's an interesting point. Upon closer examination
there only seems to be a mouseDown: method in the
SKTGraphicView.


It seems that nextEventMatchingMask 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...
Should I worry about what happens when the mouse moves out of the window?



When I developed my slide editor app, I just used
mouseDown, mouseDragged, and mouseUp. That seems to be
the simplest way to go.

Sketch seems to be using nextEventMatchingMask: from
the NSWindow class to get mouse data. It's unfortunate
the this application has sparse commenting.




--- Brian O'Brien <email@hidden> wrote:


I don't quite understand why this example doesn't

handle mouseMoved,

Up and Dragged events...
I get the feeling there is something going on with

mouse tracking but

I'm not sure how that works and if it is
faster then processing the moved and dragged

events.


I don't see in the code where the software figures

out that the user

clicked on a control point of an object
and changes its geometry if the mouse moves or if

the user clicked

inside the object and is moving it.

I don't see where in the code the software draws

the 'bounding box'

and/or control points for an object.

Many thanks....
Brian.


_______________________________________________ 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







__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com


_______________________________________________ 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
  • Follow-Ups:
    • Re: Some questions about the sketch example...
      • From: Greg Titus <email@hidden>
References: 
 >Re: Some questions about the sketch example... (From: Ian was here <email@hidden>)

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