Theocacao
Leopard
Design Element
Comment on "A Quick Objective-C 2.0 Tutorial: Part II"
by Drew McCormack — Nov 05
For anyone following the CoreData discussion, Scott was indeed right about this (no surprise).

I threw together a quick test app, but I initialized the NSManagedObject by calling init instead of using the usual CD initialization method. Obviously if you do that the accessors are not correctly added to the runtime.

So dot syntax, and setters, should work with properties, and @dynamic is useful in this case.

Drew
Back to "A Quick Objective-C 2.0 Tutorial: Part II"
Design Element

Copyright © Scott Stevenson 2004-2015