Coder Social home page Coder Social logo

sghotkeyslib's Introduction

SGHotKeyLib - Hot Keys For Mac OS X Leopard And Beyond

What is SGHotKeyLib?

SGHotKeysLib is a fork of Quentin D. Carnicelli's excellent PTHotKeysLib library for registering shortcut keys on Mac OS X.

PTHotKeysLib has served us well for many years, but as I was upgrading my company's applications to run natively in 64 bit I was running into issues. The original code itself used many deprecated methods, 32 bit integer types, etc. As I fixed those issues, my OCD started to get the best of me and I started reformatting and rewriting portions of the code using modern Objective-C practices and paradigms.

SGHotKeysLib does the following:

  • Adopts Objective-C 2.0 syntax, properties and other language features (suck it dot syntax haters)
  • Uses Leopard's Text Input Sources (no patching required)
  • Runs natively in 64 bit
  • Supports Garbage Collection
  • Removes legacy code support (no more checking for 10.1, no more Project Builder)
  • Cleans up the code formatting & variable declarations
  • Puts the code on Github for hot forking action

What's in the box?

SGHotKeysLib includes:

  • The SGHotKeysLib itself
  • A sample application that demonstrates how it works.

The sample uses a custom-built version of the ShortcutRecorder framework to demonstrate setting a hot key.

All The Other Stuff

SGHotKeysLib is a modernization of a piece of code many of us have been using for several years, and I'm sure it could be improved even more. If you have ideas for how to do that, please fork away.

Please report bugs and request features on the Lighthouse SGHotKeysLib project site.


  • 1.2

  • Some fixes and changes from the AgileBits crew!

  • 1.1

    • Added support for traditional retain/release memory management
    • Resolved some compiler warnings that didn't show up in [REDACTED]
  • 1.0 Original release

sghotkeyslib's People

Contributors

mattstevens avatar pburleson avatar roustem avatar rudyrichter avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.