If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Originally posted by davecom:
<STRONG>How do I detect when the mouse enters or exits a NSView?</STRONG>
NSResponder has to methods called mouseEntered and mouseExited. Because NSView is a subclass of NSResponder, all you should have to do is override mouseEntered and mouseExited.
NSResponder has to methods called mouseEntered and mouseExited. Because NSView is a subclass of NSResponder, all you should have to do is override mouseEntered and mouseExited.
Also read the /Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/BasicEventHandling/Tasks/HandlingMouseTracking.html doc file. I think you'll need to set up a tracking rect to get those messages sent to you.