Re: Removing subview crashes host application
Re: Removing subview crashes host application
- Subject: Re: Removing subview crashes host application
- From: Ken Tozier <email@hidden>
- Date: Sun, 22 Apr 2007 18:26:40 -0400
Thanks Jerry
I did eventually track this one down (by using NSZombie) and it was
caused by an orphaned tracking rect I was creating for the view. Once
I zapped that, the crashes stopped.
Ken
On Apr 22, 2007, at 6:21 PM, Jerry Krinock wrote:
On 2007 Apr, 21, at 12:16, Ken Tozier wrote:
[sub removeFromSuperview];
Try -removeFromSuperviewWithoutNeedingDisplay instead. The
documentation says that this one can be safely used "during
display" while the one you're using cannot, because the it "does
not invalidate its cursor rectangles".
I have no idea what they mean by that, but in my experience both
methods do exactly the same thing, except that the one you're using
usually causes a crash.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40comcast.net
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden