add @property(assign) id contextInfo; to SGHotKey
Reported by Chris | February 26th, 2010 @ 11:34 PM
I think it would solve a lot of problems if this was added to SGHotKey:
id contextInfo;
@property(assign) id contextInfo; @synthesize contextInfo;
By allowing you to store your own contextInfo in the HotKey object, when the hotkey is called, you can get access to context information. This allows you to have for example, different hot keys assigned for similar kinds of events, and the contextInfo tells the callback what object to apply to it. Very useful for lots of situations. Doesn't hurt compatibility.
Comments and changes to this ticket
-

Justin Williams February 27th, 2010 @ 01:17 AM
- → Tag set to featurerequest
- → State changed from new to accepted
Patches welcomed.
-

-

Justin Williams February 27th, 2010 @ 06:04 PM
If you want it integrated into the main development queue, the best way is to fork the Github repository, make the change and then send me a pull request. Otherwise development only moves forward as I need it in my daily development work.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
A modernized fork of PTHotKeysLib for Mac OS X Leopard and beyond