• 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: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Synthesized properties for scalars not KVO compliant (From: Kiel Gillard <email@hidden>)
 >Re: Synthesized properties for scalars not KVO compliant (From: Jerry Krinock <email@hidden>)
 >Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant) (From: Kiel Gillard <email@hidden>)
 >Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant) (From: Dave Keck <email@hidden>)
 >Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant) (From: Kiel Gillard <email@hidden>)

  • Prev by Date: [Core Data] Can we use setValue:forKey: in *willSave* method of NSManagedObject?
  • Next by Date: Re: [Core Data] Can we use setValue:forKey: in *willSave* method of NSManagedObject?
  • Previous by thread: Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
  • Next by thread: Re: Synthesized properties for scalars not KVO compliant
  • Index(es):
    • Date
    • Thread