Re: mutating custom-class, becomes NSArray
Re: mutating custom-class, becomes NSArray
- Subject: Re: mutating custom-class, becomes NSArray
- From: Larry Fransson <email@hidden>
- Date: Wed, 15 Sep 2004 14:11:41 -0700
On Sep 15, 2004, at 13:01, adam krawiec wrote:
muPoint = [AKPoint pointWithX:mouseUpPoint.x Y:mouseUpPoint.y]
Executable “AK3DPlot” has exited due to signal 11 (SIGSEGV).
any ideas on how/why my class is morphing into an array in my view???
The first thing to suspect with a signal 10 or 11 is a memory
management problem. Classes that seem to mysteriously "morph"
themselves are another indication of a memory management problem.
Is your instance of AKPoint properly retained? Your initialization
would seem to indicate that it returns an autoreleased instance of
AKPoint. You might try
muPoint = [[AKPoint pointWithX:mouseUpPoint.x Y:mouseUpPoint.y]
retain];
and see if the problem goes away. Then just make sure to release it
when you're finished with it.
Larry Fransson
Seattle, WA
_______________________________________________
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