Skip to content

a library for coca that does custom global hotkeys in Objective-C using PTHotKey and an ARC-Enabled DemoApp

License

Notifications You must be signed in to change notification settings

Daij-Djan/PTHotKey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Configure your project as necessary the demo project is using ARC and sandboxed with no entitlements.

  1. Import the Carbon.framework into your project if it's not already.

  2. Link against the libPTHotKey-OSX.a

  3. Include the needed resources from the lib so they are copied to your app. PTKeyCodes.plist AND PTKeyComboPanel.xib [ignore the xib, if you don't use PTKeyComboPanel but have your own UI. Or adapt the xib to your liking]

  4. Use & enjoy

Also available via cocoapods

Attributions

The lib's implementation came from Brett Terpstra's fork nvALT when searching for a dynamic global shortcut solution. Thank's for being awesome Brett.

the demo came from Keith Smiley (https://github.com/Keithbsmiley/PTHotKeyTest)

About

a library for coca that does custom global hotkeys in Objective-C using PTHotKey and an ARC-Enabled DemoApp

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Objective-C 97.6%
  • Ruby 2.4%