Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
- Subject: Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
- From: Dave Keck <email@hidden>
- Date: Thu, 21 May 2009 21:35:51 -1000
> It would be great if we could get a reason as to why it seems to always
> return NO. My guess would be that there could be a significant performance
> overhead using the KVO mechanism for every layer's property?
That was my first thought, too. But after thinking about it, it's my
understanding that there's no KVO overhead until someone's actually
observing a property of the object in question - that is, no
isa-swizzling/proxy magic is happening until you call addObserver: on
the CALayer.
Frankly, it seems like a bug, or at least an oversight in the docs (or
perhaps I missed where it's mentioned - I can't honestly say I
searched too hard :)).
David
_______________________________________________
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