• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is viewDidMoveToWindow called multiple times?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Why is viewDidMoveToWindow called multiple times? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Slowwwwww releasing of text views
  • Next by Date: Re: Which class methods return autoreleased objects?
  • Previous by thread: Re: Why is viewDidMoveToWindow called multiple times?
  • Next by thread: MEEING: Chicago - Tuesday, December 7th @ 6:00 PM
  • Index(es):
    • Date
    • Thread