/IWGlobalHotkeys

A convenience class for defining, installing, and removing system-wide hotkeys in Cocoa apps.

Primary LanguageObjective-C

{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;\red77\green77\blue77;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}.}{\leveltext\leveltemplateid1\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
\margl1440\margr1440\vieww20360\viewh12200\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural

\f0\b\fs24 \cf0 Ian White Source Code License
\b0 \
Update: July 14th, 2012\
\
Thanks for downloading the Global Hotkey source code. This code is licensed under The Unlicense (included below) which basically states that you are free to re-use this code in any product (commercial or otherwise) with no cost or attribution requirements. You're also free to modify and redistribute the code at no cost with no attribution and no license requirements. This code has been given to the public domain.\
\
\

\b Using IWGlobalHotkeys\

\b0 \
IWGlobalHotkeys allows you to register global hot keys for Mac OS X applications. The included project shows how to use the class. Something things to keep in mind are:\
\
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural
\ls1\ilvl0\cf0 {\listtext	1.	}This is ARC code. Make sure ARC is enabled when compiling this code or it will leak.\
{\listtext	2.	}You must link your project against the Carbon.framework in order to use this code. Apple only exposes the necessary functionality via Carbon, but you're 64-bit app will still be able to link against it.\
{\listtext	3.	}You must specify a target/action callback. The method that you're calling back to should take no arguments and return nothing. \
{\listtext	4.	}As written, this code supports having up to 9999 hotkeys installed at once, which should be plenty. \
{\listtext	5.	}The code defines 4 modifier keys that you must pass in as an NSArray when instantiating a new IWGlobalHotkey object or when calling -setModifiers:. The four modifiers which may be used in any combination of one or more are: IWGLOBALHOTKEY_COMMAND, IWGLOBALHOTKEY_OPTION, IWGLOBALHOTKEY_CONTROL, IWGLOBALHOTKEY_SHIFT\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
\cf0 \
If you've got any questions about the code, feel free to contact me at ian.o.white@gmail.com. Enjoy!\
\
\

\b Full Source Code License Text
\b0 \
\

\f1 \cf2 This is free and unencumbered software released into the public domain.\
\
Anyone is free to copy, modify, publish, use, compile, sell, or\
distribute this software, either in source code form or as a compiled\
binary, for any purpose, commercial or non-commercial, and by any\
means.\
\
In jurisdictions that recognize copyright laws, the author or authors\
of this software dedicate any and all copyright interest in the\
software to the public domain. We make this dedication for the benefit\
of the public at large and to the detriment of our heirs and\
successors. We intend this dedication to be an overt act of\
relinquishment in perpetuity of all present and future rights to this\
software under copyright law.\
\
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\
OTHER DEALINGS IN THE SOFTWARE.\
\
For more information, please refer to <http://unlicense.org/>}