cocoabits / MASShortcut

Modern framework for managing global keyboard shortcuts compatible with Mac App Store. More details:
http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html
BSD 2-Clause "Simplified" License
1.52k stars 220 forks source link

Add clearGlobalHotkeyMonitor method #38

Closed xhacker closed 10 years ago

shpakovski commented 10 years ago

Hello, could you please describe how do you apply this method? I cannot imagine the use case. Thanks in advance.

xhacker commented 10 years ago

Currently we only have + (void)removeGlobalHotkeyMonitor:(id)monitor, so I need to store the registered monitors in order to clear them. If I have - (void)clearGlobalHotkeyMonitor, I can change the shortcut easily without saving the monitor.

xhacker commented 10 years ago

I admit that this feature is not really general, so feel free to decline this request if you think it's not commonly useful.

shpakovski commented 10 years ago

Thanks for understanding, and sorry for inconvenience.