Re: NSBezierPath retain crash
Re: NSBezierPath retain crash
- Subject: Re: NSBezierPath retain crash
- From: Chad Harrison <email@hidden>
- Date: Wed, 12 Nov 2003 13:48:31 -0500
On Nov 12, 2003, at 1:43 PM, Christopher Corbell wrote:
If you use a method like bezierPathWithRect, stringWithCString, etc.
or otherwise obtain an autoreleased object, and want to use that
object persistently as a class member, you -must- call retain on the
object. (And then you're responsible for calling release or
autorelease on the object when you're done with it, e.g. you
replace it or the owning class is dealloc'd).
I tried explicitly retaining it, and then releasing it when my object
was released, but that also crashed...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.