@dynamic stupidity?
@dynamic stupidity?
- Subject: @dynamic stupidity?
- From: William Squires <email@hidden>
- Date: Thu, 25 Feb 2010 21:10:47 -0600
What exactly does @dynamic do? Specifically, in the context of a Core
Data managed-object? Here's what I do understand:
1) You create an 'entity' in the .xcdatamodel file
2) You ask Xcode to create the class files for you
3) The .m file contains @dynamic instead of @synthesize for each of
the entity's 'attributes' (which now correspond to instance variables
in a class derived from NSManagedObject)
Here's what I don't understand:
Why doesn't it just @synthesize the accessors? What would happen if I
replaced the @dynamic with @synthesize? Would it blow up, or just
have weird performance issues?
_______________________________________________
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