NSPropertyDescription userInfo
NSPropertyDescription userInfo
Folks;
I'm trying to use the 'userInfo' on CoreData Entity Attributes to
accomplish 2 things:
1) a friendly name to show the end user
2) a flag for dis/inclusion on some tableViews.
How in the heck do you access this userInfo?
I've tried many permutations around:
NSEntityDescription * x = [[[[managedObjectContext
persistentStoreCoordinator] managedObjectModel] entitiesByName]
objectForKey:@"X"];
NSLog(@"X=%@",x);
NSLog(@"X PropByName :%@",[x propertiesByName]);
NSLog(@"X PropByName :%@",[x attributesByName])
but I never see the userInfo dictionary. I have verified the model
is saved.
Conceptually I can't figure out what methods actually produce the
NSPropertyDesction.
The docs simply say that the above produces a dictionary - which it
appears to.
Most of the responses characterize themselves as
'AttributeDescription' which is, I believe, a subclass of
NSPropertyDescription.
But where is the darn userInfo?
BTW: what is the impact of changing userInfo in a production
setting? Where would this be documented?
All of my meager kingdom for some deep sample code...
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden