« Cocoa SearchField wit… | Home | Tip of the day: PDF w… »

Gestures on Mac OS X

If you want to support gestures in your Mac OS X application with Real Studio, please take time to check our plugins. For Carbon applications, we have Gesture events in both CarbonWindowsEventsMBS and CarbonApplicationEventsMBS classes. So either for a window or the whole application, you can receive gesture events.

For Cocoa you'd place a CustomNSViewMBS, QTKitCustomMovieViewMBS, QTKitCustomCaptureViewMBS or CustomPDFViewMBS on the window. Gesture events inside this view will be caught by the gesture events there. Also NSEventMBS class has some properties for this gestures so you can query rotation angle or magnification factor.
13 07 11 - 16:34