• 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: Another best practice question: storing hotkey assignments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another best practice question: storing hotkey assignments


  • Subject: Re: Another best practice question: storing hotkey assignments
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 04 Jan 2014 12:28:52 -0800

On 2014 Jan 04, at 11:14, Steve Mills <email@hidden> wrote:

> There ya go, 2 shorts make UInt32.

Yes, except unless you’re doing this for fun, I wouldn’t get down to the bit level because this code, which is somewhat tedious (conversions between Carbon and Cocoa key codes come to mind), has already been written and open-sourced.  Look at SRRecorderControl.  Look at the forks - I remember reading there is a 2.0 or something by a different author.  Also in github.com I have SSYShortcutBackend and SSYShortcutActuator which work with SRRecorderControl.  One of them takes care of the user defaults for you.


_______________________________________________

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: 
 >Another best practice question: storing hotkey assignments (From: Alex Hall <email@hidden>)
 >Re: Another best practice question: storing hotkey assignments (From: Steve Mills <email@hidden>)

  • Prev by Date: Auto Layout with NSSplitView, NSScrollView
  • Next by Date: Re: NSHTMLTextDocumentType returns wrong font names
  • Previous by thread: Re: Another best practice question: storing hotkey assignments
  • Next by thread: Re: Another best practice question: storing hotkey assignments
  • Index(es):
    • Date
    • Thread