[Cocoa-sharp] Event.cs and mouseLocation

Todd Schavey schaveyt at gmail.com
Mon Mar 12 13:22:48 EDT 2007


Pedro,

Please get the lastest source from SVN. As part of a drawing example that
I'm working on I actually went ahead and created the Event class as well as
updated the View class with a crap load of event handlers for mouse and
keyboard interaction.

Please be aware, although you will be able to ge the location of the mouse
click, it's coordinate system still needs to be converted. ***this is where
I'm having some troubles yet. I'm attempting to call the
convertPoint:fromView ObjC method and it choking. Without this...the mouse
location won't make any sense...:-(.

My plan is to upload the current tutorial to the Google Groups site. That
way maybe Mr. Norton would be able to help me out. You'll also see how to
use those event handlers...and they very handy and eliminate a lot of
repetitive lines of code.

Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/cocoa-sharp/attachments/20070312/873b3c05/attachment.html 


More information about the Cocoa-sharp mailing list