Re: SIGTRAP on adding object to mutable array
Re: SIGTRAP on adding object to mutable array
- Subject: Re: SIGTRAP on adding object to mutable array
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 11 Sep 2007 14:37:43 -0700
On 9/11/07, Daniel Child <email@hidden> wrote:
> - (void) addCandidate: (NSString *) c
> {
> [[self wordCandidates] addObject: c]; // wordCandidates is an
> NSMutableArray ivar
> // SIGTRAP HERE
> // ALSO TRIED [wordCandidates addObject: c];
> // DO I NEED TO COPY OR RETAIN HERE?
> }
It sounds like wordCandidates in pointing at an object that no longer
exits. So what code touches wordCandidates? How is that object
created? etc.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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