Re: Keyboard events in a PrefPane
Re: Keyboard events in a PrefPane
- Subject: Re: Keyboard events in a PrefPane
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 15 Nov 2001 18:50:36 +0000
On Thursday, November 15, 2001, at 04:20 pm, Yves Peneveyre wrote:
I need my PrefPane be notified when the user press the alt key on the
keyboard (to change some things in the pane, for example).
The problem I have is that NSPreferencePane doesn't inherit of
NSResponder
so I can't override the flagsChanged method to catch the alt key event.
So, how can/could I catch this event ?
In the same idea, I can't catch the mouseMoved event. If anyone has an
answer to "how to catch mouse events in a PrefPane ?", let me know.
//
// Returns the main view of the preference pane.
//
- (NSView *)mainView;
-- Finlay