[PreferencePane and addTrackingRect]
[PreferencePane and addTrackingRect]
- Subject: [PreferencePane and addTrackingRect]
- From: "Yves Peneveyre" <email@hidden>
- Date: Mon, 22 Oct 2001 15:46:16 +0200
Hi all !
I'm writting a preference pane and I'd like my controller be notified
when the cursor is on one of my button.
I used the setAcceptsMouseMovedEvents: and the
addTrackingRect:owner:user
Data:Inside:
methods, but this last one returns 0.
For the first method, the receiver is the system preferences window and for
the second
method I tried to use the system preferences window's view ([theWindow
contentView]),
the button itself, the button's superview and each time the addTrackingRect
returns 0.
Is there something I forgot ?
Is it possible to handle the mouseEntered and mouseExited events in a
preference pane ?
I thank you for your help.
Yves