简体   繁体   中英

Disable “Tap to Click” in a XCode cocoa application

The system preferences of Mac OS X have a option of magic track pad to just touch the track pad without actually press to do a click. It is called "Tap to Click". Is there a way to disable this functionality in my application?

I'm using XCode 4.5 and the project is a cocoa application. The Mac OS X is the Lion version.

for UIWebview ,to switch off the default contextual menu of UIWebView. This is easy because we only need to set the CSS property “-webkit-touch-callout” to “none” for the body element of the web page. We can do this using JavaScript in the UIWebView delegate method “webViewDidFinishLoad:”…

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
[webView stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitTouchCallout='none';"];
}

for mac ..there should be something like this...not sure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM