Re: NSPropertyDescription userInfo
Re: NSPropertyDescription userInfo
- Subject: Re: NSPropertyDescription userInfo
- From: Jim Correia <email@hidden>
- Date: Sat, 5 Nov 2005 08:39:01 -0500
On Nov 5, 2005, at 4:10 AM, Steve@DotMac wrote:
I'm trying to use the 'userInfo' on CoreData Entity Attributes to
accomplish 2 things:
1) a friendly name to show the end user
Use the localization dictionary for that purpose. (The documentation
says it is attached directly if it has the correct name. In my
testing this isn't the case. Writing a bug about this is on my to do
list.)
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.
Logging a value doesn't necessarily do a comprehensive dump of the
object - it just dumps whatever the description method returns.
-[NSPropertyDescription userInfo] is what you want.
http://developer.apple.com/documentation/Cocoa/Reference/
CoreData_ObjC/Classes/NSPropertyDescription.html#//apple_ref/doc/uid/
TP30001178-BAJJJEEI
Jim
_______________________________________________
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