FROM : Nathan Day
DATE : Thu Mar 27 08:21:01 2008
You probable have, try downloading it again from my site, you also
might want to download my Popup Dock application <http://homepage.mac.com/nathan_day/.cv/nathan_day/Public/Software/Popup%20Dock%202.1b%20(10.5).dmg-binhex.hqx
>
and look at how the views are set up for the IB file within the
preference pane, it use the NDHotKeyControl in a cooler way than the
example that comes with NDHotKeyEvent, I will have to update the
example app to show this when I get a chance.
On 27/03/2008, at 17:18 , Brian Kendall wrote:
>
> It doesn't look like NDHotKeyControl implements a
> setReadyForHotKeyEvent: method. Do I perhaps have an older version
> of the NDHotKeyControl source code? Surely there is something I'm
> missing here. I figure I can take your word for it on this, since
> you wrote the class and all. ;-)
>
> - Brian
>
> On Wed, 26 Mar 2008 09:56:01 -0400, Nathan Day <<email_removed>>
> wrote:
>
>> 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_removed>> 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_removed>)
>>>
>>> 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:
>>> http://lists.apple.com/mailman/options/cocoa-dev/nathan_day
>>> %40mac.com
>>>
>>> This email sent to <email_removed>
>>
>>
>>
>> Nathan Day
>> <email_removed>
>> http://homepage.mac.com/nathan_day/
>>
>
>
DATE : Thu Mar 27 08:21:01 2008
You probable have, try downloading it again from my site, you also
might want to download my Popup Dock application <http://homepage.mac.com/nathan_day/.cv/nathan_day/Public/Software/Popup%20Dock%202.1b%20(10.5).dmg-binhex.hqx
>
and look at how the views are set up for the IB file within the
preference pane, it use the NDHotKeyControl in a cooler way than the
example that comes with NDHotKeyEvent, I will have to update the
example app to show this when I get a chance.
On 27/03/2008, at 17:18 , Brian Kendall wrote:
>
> It doesn't look like NDHotKeyControl implements a
> setReadyForHotKeyEvent: method. Do I perhaps have an older version
> of the NDHotKeyControl source code? Surely there is something I'm
> missing here. I figure I can take your word for it on this, since
> you wrote the class and all. ;-)
>
> - Brian
>
> On Wed, 26 Mar 2008 09:56:01 -0400, Nathan Day <<email_removed>>
> wrote:
>
>> 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_removed>> 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_removed>)
>>>
>>> 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:
>>> http://lists.apple.com/mailman/options/cocoa-dev/nathan_day
>>> %40mac.com
>>>
>>> This email sent to <email_removed>
>>
>>
>>
>> Nathan Day
>> <email_removed>
>> http://homepage.mac.com/nathan_day/
>>
>
>
| 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

