• 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
Removed view still getting events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Removed view still getting events


  • Subject: Removed view still getting events
  • From: John Nairn <email@hidden>
  • Date: Thu, 28 Sep 2006 13:28:29 -0700

After I removed a view using

[myView removeFromSuperview]

my program crashed. By retaining the object before removing, I found it it was sill getting events (in this case mouse moved events). This behavior seems to contrast with removeFromSupreview documentation that says

Unlinks the receiver from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles.

Is there a proper way to remove a view and stop it from getting events? Maybe it is subview of something else too?

---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://woodscience.oregonstate.edu/faculty/Nairn
FEA/MPM Web Page: http://oregonstate.edu/~nairnj



---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://woodscience.oregonstate.edu/faculty/Nairn
FEA/MPM Web Page: http://oregonstate.edu/~nairnj



_______________________________________________
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


  • Follow-Ups:
    • Re: Removed view still getting events
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSimage leaking memory or probably just me
  • Next by Date: Re: Removed view still getting events
  • Previous by thread: RE: NSImage leaking memory or just me
  • Next by thread: Re: Removed view still getting events
  • Index(es):
    • Date
    • Thread