• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing keyboard settings in code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing keyboard settings in code?


  • Subject: Re: Changing keyboard settings in code?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Wed, 23 Jan 2008 11:10:06 -0500

On Jan 23, 2008 10:02 AM, Daniel Kennett <email@hidden> wrote:
> Short of using UI scripting, does anyone have any idea on how I could
> accomplish such a thing? Opening the preference pane's .nib in IB
> hasn't got me anywhere!

$ defaults read > foo
# Change the system preferences setting
$ defaults read > bar
$ diff foo bar
56a57
>         "com.apple.keyboard.fnState" = 1;
$ defaults find com.apple.keyboard.fnState
Found 1 keys in domain 'Apple Global Domain': {
    "com.apple.keyboard.fnState" = 1;
}

So there you have it.  Change the global domain default for
com.apple.keyboard.fnState.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Changing keyboard settings in code? (From: Daniel Kennett <email@hidden>)

  • Prev by Date: Re: FSPathCopyObjectAsync Help
  • Next by Date: Re: Understanding the inner workings: getting to know how functions are called
  • Previous by thread: Changing keyboard settings in code?
  • Next by thread: Responding To Screen Saver/Sleep Events
  • Index(es):
    • Date
    • Thread