Bug? Not receiving mouseEntered and mouseExited events
Bug? Not receiving mouseEntered and mouseExited events
- Subject: Bug? Not receiving mouseEntered and mouseExited events
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 17 Jan 2006 14:58:18 +0000
I have this strange situation that I am unable to receive
mouseEntered or mouseExited events.
- (void)mouseEntered:(NSEvent *)theEvent {
}
- (void)mouseExited:(NSEvent *)theEvent {
}
The same button CAN receive mouseDown: event just fine.
I am enabling mouse moved events like this, in my NSWindowController
subclass:
- (void)awakeFromNib
{
[[self window] makeFirstResponder:self];
[[self window] setAcceptsMouseMovedEvents:YES];
}
I'm even doing this:
+(JamController*)nicenew {
JamController* c = [JamController alloc];
c = [c init];
NSWindow* w = [c window];
[w setDelegate:c];
[w setAcceptsMouseMovedEvents:YES];
return c;
}
That doesn't help.
No matter what I do, I can't receive mouseEntered events.
What is wrong?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden