#3 accepted
Chris

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

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket