• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing a preference pane that configures hotkeys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a preference pane that configures hotkeys?


  • Subject: Re: Writing a preference pane that configures hotkeys?
  • From: Nathan Day <email@hidden>
  • Date: Thu, 27 Mar 2008 00:56:01 +1100

I use those classes myself in a preference pane (Popup Dock) and they work fine. You need to have a NDHotKeyControl to capture the event, you can create an input field in IB and change its class to NDHotKeyControl. You then need to tell the NDHotKeyControl to wait for a HotKey combination event by calling setReadyForHotKeyEvent:, you can alternativly set up a button to send a readyForHotKeyEventChanged: action.

On 26/03/2008, at 12:38 AM, Brian Kendall wrote:

On Mon, 24 Mar 2008 01:46:27 -0400, Jens Alfke <email@hidden> wrote:

Take a look at Nathan Day's "NDHotKeyEvent" utility code:
	http://homepage.mac.com/nathan_day/pages/source.xml


I tried to use this in my preference pane, but I can't get the control to receive hot key events. There could be something I'm doing wrong when setting up or working with the NDHotKeyControl class, but is there any reason it wouldn't be able to receive events in a preference pane?


- Brian
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



Nathan Day email@hidden http://homepage.mac.com/nathan_day/

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Writing a preference pane that configures hotkeys?
      • From: "Brian Kendall" <email@hidden>
References: 
 >Writing a preference pane that configures hotkeys? (From: "Brian Kendall" <email@hidden>)
 >Re: Writing a preference pane that configures hotkeys? (From: Jens Alfke <email@hidden>)
 >Re: Writing a preference pane that configures hotkeys? (From: "Brian Kendall" <email@hidden>)

  • Prev by Date: Basic question about NSComboBox
  • Next by Date: Re: NSOutlineView "sliding" animation
  • Previous by thread: Re: Writing a preference pane that configures hotkeys?
  • Next by thread: Re: Writing a preference pane that configures hotkeys?
  • Index(es):
    • Date
    • Thread