Re: problem with addTrackingRectangle
Re: problem with addTrackingRectangle
- Subject: Re: problem with addTrackingRectangle
- From: Scott Thompson <email@hidden>
- Date: Wed, 15 Feb 2006 09:41:11 -0600
On Feb 15, 2006, at 9:22 AM, Ivan Kourtev wrote:
Hello,
I am having a problem adding a tracking rectangle to a custom view
-- I've overridden - resetCursorRects, and I am sending [self
addTrackingRect:...] while in resetCursorRects. But I think the
problem is that my custom view never actually receives any
resetCursorRects messages (I checked and know this for a fact).
I think you want to call addCursorRect:cursor: instead of
addTrackingRect:?
I also overrode -invalidateCursorRectsForView: in my custom window
class containing the custom view. I verified that the window
receives invalidateCursorRectsForView messages just fine. Then why
doesn't resetCursorRects get sent to my custom view?
I guess I am missing something here -- any suggestions?
You might need to call the "enableCursorRects" method of your
window. You can check it's state with "areCursorRectsEnabled"
Scott
_______________________________________________
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