• 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: Synthesised properties and additional actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synthesised properties and additional actions


  • Subject: Re: Synthesised properties and additional actions
  • From: Joanna Carter <email@hidden>
  • Date: Wed, 22 Jun 2011 18:41:48 +0100

Hi Matt

> Well, if you really want to know that, just read the discussion in the book:
>
> http://www.apeth.com/iOSBook/ch12.html
>
> My thought was (putting myself in the shoes of the student), hey, I have no idea exactly what code @synthesize generates, but whatever it is, it surely constitutes a correct getter and (especially) setter, whereas if I write those things myself (and especially the setter) the chances that I'll do something wrong are quite high. So the question is simply, how can I add my own functionality while at the same time inheriting all the synthesized accessors' yummy goodness, whatever it may be? m.

Ah, now I get it!!!  - at least I think I do ;-)

AFAICT, you are talking about making "non-GC" accessors less prone to reference counting errors? If I'm using GC, then this, presumably, becomes less relevant?

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

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: Synthesised properties and additional actions
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: Synthesised properties and additional actions (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: UIScrolview in only one direction at time
  • Next by Date: acceptsFirstMouse doesn't work
  • Previous by thread: Re: Synthesised properties and additional actions
  • Next by thread: Re: Synthesised properties and additional actions
  • Index(es):
    • Date
    • Thread