Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard events in a PrefPane



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


References: 
 >Keyboard events in a PrefPane (From: "Yves Peneveyre" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.