aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASShortcut.h
AgeCommit message (Collapse)Author
2015-01-28Documented that keyCodeString depends on active keyboard layout.Tomáš Znamenáček
2015-01-16Decrease headerdoc indenting to appease appledoc (see #55).Tomáš Znamenáček
I think I have finally found out the reason for CocoaDocs ignoring our markup: I have indented the documentation by four spaces, which was interpreted as “code” by appledoc. Trying now without the indent, that should finally help.
2015-01-13Changed headerdoc markup to work better with CocoaDocs (closes #55).Tomáš Znamenáček
2015-01-07Added header documentation.Tomáš Znamenáček
2015-01-07Made the keyCode and modifierFlags properties read-only.Tomáš Znamenáček
A shortcut is a good value type, it makes good sense to represent it using an immutable object like NSNumber or NSString.
2015-01-07Removed -data and shortcutWithData: from MASShortcut.Tomáš Znamenáček
Using NSKeyedUnarchiver and NSKeyedArchiver directly is almost the same amount of typing and it’s much clearer what goes on.
2015-01-07Removed [MASShortcut shouldBypass].Tomáš Znamenáček
It was never used and the recording can already be cancelled by Esc.
2015-01-07Introduced `instancetype` return type where appropriate.Tomáš Znamenáček
2015-01-07Introduced a standalone MASShortcutValidator class to validate shortcuts.Tomáš Znamenáček
It’s a natural simplification of the MASShortcut class. All MASShortcutView objects use a shared validator by default, but can be reconfigured to use a different validator if needed through the shortcutValidator property.
2015-01-07Converted keycode macros to plain functions.Tomáš Znamenáček
Plain functions are less prone to bugs, the compiler understands them better and can offer better error messages, and plain functions can be refactored more easily.
2015-01-07Introduced a separate header file for keycode definitions.Tomáš Znamenáček
2015-01-07Repackaged the code as a framework and included the demo.Tomáš Znamenáček
Packaging the code as a framework is mostly just a formality. It doesn’t really change much, it just turns the code into a regular component. What it does change is that the code now has its own Xcode settings, which could make compatibility easier in the long run. Including the demo in the main repository makes it easier to hack on the library, since you can try the changes immediately. It also shows how to bundle the framework into an app that uses it.