Re: @dynamic and Programmatic Access to Setters
Re: @dynamic and Programmatic Access to Setters
- Subject: Re: @dynamic and Programmatic Access to Setters
- From: Jens Alfke <email@hidden>
- Date: Thu, 17 Apr 2008 23:21:13 -0700
I've successfully used @dynamic property implementations with CoreData
managed-object subclasses. The only limitation I know of is that it
only works with object-valued properties, not scalars. But that's not
what you're running into.
My guess would be that you're not instantiating the object properly.
NSManagedObject does some very, very weird stuff behind the scenes,
including swizzling in fake superclasses. Accordingly, you have to let
the CoreData factory methods instantiate managed objects: just calling
alloc+init won't work.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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