Skip navigation.
 
mlRe: Writing a preference pane that configures hotkeys?
FROM : Andrew Farmer
DATE : Mon Mar 24 03:34:16 2008

On 23 Mar 08, at 19:26, Brian Kendall wrote:
> I'm trying to write a preference pane that allows the user to 
> specify a hotkey.  Ordinarily I would override sendEvent in 
> NSApplication, but since it's a preference pane that's not possible 
> in this case since the System Preferences application is already 
> instantiated.  Obviously this is possible, since many other 
> preference panes do this, including the Keyboard & Mouse pref pane. 
> What's the propper way to go about doing this?


Create a helper app that runs in the background. Preference panes only 
"exist" while they're open, so registering a hotkey there doesn't do 
you much good.

Related mailsAuthorDate
mlWriting a preference pane that configures hotkeys? Brian Kendall Mar 24, 03:26
mlRe: Writing a preference pane that configures hotkeys? Andrew Farmer Mar 24, 03:34
mlRe: Writing a preference pane that configures hotkeys? Jens Alfke Mar 24, 06:46
mlRe: Writing a preference pane that configures hotkeys? Brian Kendall Mar 24, 06:47
mlRe: Writing a preference pane that configures hotkeys? Brian Kendall Mar 24, 06:49
mlRe: Writing a preference pane that configures hotkeys? Rob Napier Mar 24, 20:07
mlRe: Writing a preference pane that configures hotkeys? Brian Kendall Mar 25, 14:38
mlRe: Writing a preference pane that configures hotkeys? Nathan Day Mar 26, 14:56
mlRe: Writing a preference pane that configures hotkeys? Brian Kendall Mar 27, 07:18
mlRe: Writing a preference pane that configures hotkeys? Nathan Day Mar 27, 08:21
mlRe: Writing a preference pane that configures hotkeys? Brian Kendall Mar 27, 15:24