PDA

View Full Version : Mouse Events in NSView




Chandhu
Feb 28, 2008, 02:33 AM
Hi,

How can i find out and use mouse events for NSView? I need to draw the shapes onto a canvas using mouse in my Cocoa (using Obj C) Application. Please help me.

Thanks in advance....



robbieduncan
Feb 28, 2008, 02:52 AM
Did you even read the documentation (http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/HandlingMouseEvents/chapter_5_section_3.html)?

Soulstorm
Feb 28, 2008, 04:09 AM
A good look at the Cocoa API Reference for NSView would also reveal much. The documentation accessible through the internet, and through Xcode itself, is your best friend.