Re: Why is viewDidMoveToWindow called multiple times?
Re: Why is viewDidMoveToWindow called multiple times?
- Subject: Re: Why is viewDidMoveToWindow called multiple times?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 7 Dec 2004 04:43:32 +0100
At 16:25 Uhr -0600 06.12.2004, Ricky Sharp wrote:
- (void)viewDidMoveToWindow
{
[self resetTrackingRect];
}
It's a good idea to try to find out why you're getting that message
several times. The only thing I can think of offhand is if your view
is being mis-used as a delegate for other views. Delegates get
messages for their delegator (?) in addition to their own ones, so if
you have five delegating views, and they get moved as well, that
could account for siy calls.
At worst, you could take advantage of the fact that 0 is documented
as being an invalid tracking rect tag. So, after your call to
removeTrackingRect:, do a trackingRectTag = 0; You are already
checking trackingRectTag against being 0, so this should make sure
the same tag isn't removed twice.
But as you already said, that may only be curing the symptom, leaving
the real problem untouched.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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