Hi Jens,
I have used Boolean value while setting
ApplePressAndHoldEnabled key using
[[NSUserDefaults standardUserDefaults] setBool:NO
forKey:@"ApplePressAndHoldEnabled"] . Even I tried with setting it using
defaults tool.
1. defaults write < my application bundle-identifier >
ApplePressAndHoldEnabled -bool NO
Still I am unable to see "Press and Hold for Certain keys" feature disable for
my application.
Regards
Vaibhao Mahore
From: Jens Alfke [mailto:[email protected]]
Sent: Tuesday, January 03, 2012 1:11 AM
To: Vaibhao Mahore
Cc: [email protected]
Subject: Re: Setting ApplePressAndHoldEnabled key for specific application.
On Jan 1, 2012, at 8:44 PM, Vaibhao Mahore wrote:
2. I have tried with setting defaults for my application with
ApplePressAndHoldEnabled being NO. I can even read defaults for my application
using
defaults read < my application bundle-identifier >
Still I am unable to see "Press and Hold for Certain keys" feature disable for
my application.
Did you try forcing a boolean value for the default? I've had problems before
where some system code only understands a boolean false, not the string "NO".
defaults write my.bundle.id ApplePressAndHoldEnabled --bool NO
-Jens
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]