• 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: Ken Tozier <email@hidden>
  • Date: Wed, 22 Jun 2011 03:58:35 -0400

Hi all

I just started using @properties this week, so probably don't understand the nuances, but after looking at Matt's sample code, reading the property related docs and doing some experimentation, I'm not sure I understand what problem he's trying to solve. Is he talking about overriding inherited getters/setters?

With my own very limited experience with properties, it seems to be really easy to add functionality. Just write the getter/setter yourself. When you go to use them, they behave exactly like the auto generated ones re dot syntax, and do whatever cool thing you added.

What am I missing?


On Jun 19, 2011, at 2:02 PM, Dave DeLong wrote:

>
> On Jun 19, 2011, at 11:01 AM, Matt Neuburg wrote:
>
>> I provide a good (I think) technique for doing this in my book (p. 275, example 12-5 "Overriding synthesized accessors"). You can also download sample code here:
>>
>> https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/p275b_overrideSynthesizedAccessors
>
> Ha, that's quite clever.  I like it.  :)
>
> Dave
> _______________________________________________
>
> 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

_______________________________________________

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

  • Prev by Date: Re: Understanding layer-backed views
  • Next by Date: tooltips not firing on first try
  • Previous by thread: Re: Synthesised properties and additional actions
  • Next by thread: Re: Synthesised properties and additional actions
  • Index(es):
    • Date
    • Thread