Skip navigation.
 
mlRe: KVO autonotifying complaining about custom setter return value
FROM : Bill Garrison
DATE : Wed Mar 05 23:56:19 2008

On Mar 5, 2008, at 5:14 PM, mmalc crawford wrote:
>
> One further issue for the sake of raising it:

>> @property (setter=mySetMethod:,getter=myMethod) id valueTest;
>>

>
> Note that this implies that the accessor methods are atomic.  It's 
> comparatively rare (unless you're using GC) that Cocoa developers 
> implement atomic accessor methods, so you'd typically specify:
>
> @property (nonatomic, setter=mySetMethod:,getter=myMethod) id 
> valueTest;


So for most non-GC code, properties should be specified using 
@property (nonatomic, ...)?

I've seen a lot of Apple sample code that doesn't.  Should we be 
filing docs/sample code bugs, or just enabling GC?

Bill