• 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: Removing subview crashes host application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Removing subview crashes host application (From: Ken Tozier <email@hidden>)
 >Re: Removing subview crashes host application (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Removing subview crashes host application
  • Next by Date: Writing to a specified NSUserDefaults domain
  • Previous by thread: Re: Removing subview crashes host application
  • Next by thread: How to figure out if a tranform has no inverse?
  • Index(es):
    • Date
    • Thread