On Nov 28, 2007, at 2:41 PM, Raphael Sebbe@Google wrote:
Hi,
I am trying to use the new cursor handling mecanism of Leopard.
My view has some regions (rects) inside of it where the cursor
should be changed, otherwise should be a regular arrow.
1. From the doc, it is unclear to me if NSTrackingCursorUpdate can
be used or not in that case (rect != bounds). At least what I get
is the cursorUpdate: method being invoked both when entering AND
leaving the area. Which means the cursor never becomes an arrow
again inside that view.
How should this be handled ?
Store the cursor in the user info when you set up the tracking areas,
and then you can do this: