• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bug? Not receiving mouseEntered and mouseExited events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Bug? Not receiving mouseEntered and mouseExited events
      • From: Ricky Sharp <email@hidden>
    • Re: Bug? Not receiving mouseEntered and mouseExited events
      • From: glenn andreas <email@hidden>
    • Re: Bug? Not receiving mouseEntered and mouseExited events
      • From: Volker Runkel <email@hidden>
  • Prev by Date: RE: Prevent running in Rosetta
  • Next by Date: Re: Prevent running in Rosetta
  • Previous by thread: Re: Prevent running in Rosetta
  • Next by thread: Re: Bug? Not receiving mouseEntered and mouseExited events
  • Index(es):
    • Date
    • Thread