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.
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 mails | Author | Date |
|---|---|---|
| Brian Kendall | Mar 24, 03:26 | |
| Andrew Farmer | Mar 24, 03:34 | |
| Jens Alfke | Mar 24, 06:46 | |
| Brian Kendall | Mar 24, 06:47 | |
| Brian Kendall | Mar 24, 06:49 | |
| Rob Napier | Mar 24, 20:07 | |
| Brian Kendall | Mar 25, 14:38 | |
| Nathan Day | Mar 26, 14:56 | |
| Brian Kendall | Mar 27, 07:18 | |
| Nathan Day | Mar 27, 08:21 | |
| Brian Kendall | Mar 27, 15:24 |






Cocoa mail archive

