• 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: EXC_BAD_ACCESS on returning an int?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: EXC_BAD_ACCESS on returning an int?
      • From: mmalc Crawford <email@hidden>
References: 
 >EXC_BAD_ACCESS on returning an int? (From: Ian Havelock <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS on returning an int?
  • Next by Date: Re: EXC_BAD_ACCESS on returning an int?
  • Previous by thread: Re: EXC_BAD_ACCESS on returning an int?
  • Next by thread: Re: EXC_BAD_ACCESS on returning an int?
  • Index(es):
    • Date
    • Thread