Google
 
Web www.howardforums.com
Pages: 1

touch event handleing

(Click here to view the original thread with full colors/images)


Posted by: dizzyj

Im missing something with handeling touch events. I've been hacking on moveme and helloworldclassic examples from the apple site. The moveme app handles touch events where the helloworldclassic does not, and i've been trying to get the helloworld app to handle touch events.

I've added an NSView object, even going so far as to create a MyView class derived from NSView(the way moveme works). I've also added a touchbegan method. Everything compiles and runs , but I cant breakpoint on touchbegan like I can with the moveme app. I've even removed most everything from both apps until there really isnt much different between the two, but one handles the events, and the other doesnt.

any hints as to what I might be missing?

thanks



Posted by: dizzyj

hm..still not sure why I couldnt get touch event handleing in helloworld, but when I create a new cocoa app, it works just fine.



Posted by: seahorsejl

I think it has to do with the fact that the HelloWorld example does not create a totally separate view. It only draws the buttons and graphics on the main window, where a new project and the MoveMe example creates a whole new subView and adds it to the main window.

But sounds like you have things up and running now....





vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2008 - Created by Stefan "Xenon" Kaeser