Re: EXC_BAD_ACCESS on returning an int?
Re: EXC_BAD_ACCESS on returning an int?
- Subject: Re: EXC_BAD_ACCESS on returning an int?
- From: Andrew Farmer <email@hidden>
- Date: Sat, 4 Jul 2009 23:43:53 -0700
On 4 Jul 2009, at 17:39, Ian Havelock wrote:
@synthesize numberOfSides;
@synthesize minimumNumberOfSides;
@synthesize maximumNumberOfSides;
- (int)numberOfSides {
return numberOfSides;
}
- (void)setNumberOfSides:(int)value {
numberOfSides = value;
}
Let me guess: does your stack trace (type "tb" in the gdb console)
indicate infinite recursion? Either synthesize accessors or write your
own - but don't try to do both at once. Down that road lies madness.
_______________________________________________
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