Re: -attributeKeys and Core Data
Re: -attributeKeys and Core Data
- Subject: Re: -attributeKeys and Core Data
- From: Daniel DeCovnick <email@hidden>
- Date: Mon, 2 Apr 2007 18:37:59 -0700
Exactly what I was looking for. Thanks!
I imagine then that this would work?:
NSArray *relationshipKeys = [[[[self valueForKey:relationship]
entity] attributesByName] allKeys];
-Dan
On Apr 2, 2007, at 3:55 PM, Jim Correia wrote:
On Apr 2, 2007, at 6:46 PM, Daniel DeCovnick wrote:
Question: does Core Data set up NSClassDescriptions for Entities
that do not have custom classes,
There is a 1 to 1 mapping of Class to NSClassDescription.
NSManagedObject can be used as the runtime class for multiple
entities; therefore NSClassDescription isn't suited to this problem.
If not, how do I get the same effect as the sample code at the
bottom of this email?
NSEntityDescription should provide you with all the information you
need to do this type of introspection.
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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