Removed view still getting events
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