Receiving tracking rectangle events
Receiving tracking rectangle events
- Subject: Receiving tracking rectangle events
- From: Thomas Davie <email@hidden>
- Date: Sat, 29 May 2004 00:06:47 +0100
Hi,
I've been writing a game that has a similar set up to chess, pieces
are placed and moved on an 8x8 board. One of the features I've been
attempting to write is the ability for the user to hover the mouse over
a piece and show it's valid moves. To do this I'm setting up 64
tracking rectangles using NSView's addTrackingRect....... method in the
initWithFrame method with owner set to self on my board view, and then
adding two functions - (void)mouseEntered:(NSEvent *)event and -
(void)mouseExited:(NSEvent *)event. However, neither event ever gets
called no matter how much I move the mouse in and out of the relevant
squares. Have I missed something critical?
Thanks
Tom Davie
--
Computer Science is as much about computers as astronomy is about
telescopes -- Edsgar Dijkstra
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.