Re: Synthesised properties and additional actions
Re: Synthesised properties and additional actions
- Subject: Re: Synthesised properties and additional actions
- From: Tony Romano <email@hidden>
- Date: Sun, 19 Jun 2011 13:50:50 -0700
- Thread-topic: Synthesised properties and additional actions
Of course they are not designed for atomic operations, you have to add all
the critical sections to make it so. If you argue that you don't need the
multi threaded robustness, then you could argue the value hooking the
setter diminishes the benefit of using the synthesis feature since you are
writing the setter anyways.
Tony Romano
On 6/19/11 11:02 AM, "Dave DeLong" <email@hidden> 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/p
>>275b_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