Re: NSPropertyDescription userInfo
Re: NSPropertyDescription userInfo
- Subject: Re: NSPropertyDescription userInfo
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 5 Nov 2005 08:31:35 -0800
On Nov 5, 2005, at 7:48 AM, Steve@DotMac wrote:
What exactly creates an NSPropertyDescription as its response?
I thought, and have tried, to get something along the lines of
[[[...entity] propertyDescriptionFor:@"attributeName"] userInfo]...
I just can't get the syntax right....
As Jim noted, this is already returning the user info for you. Have
you actually set a user info dictionary? There's a short paragraph
about it in <http://developer.apple.com/documentation/DeveloperTools/
Conceptual/XcodeUserGuide21/Contents/Resources/en.lproj/
02_04_design_data_model/chapter_15_section_3.html> -- maybe it needs
an accompanying screenshot (please feel free to file an enhancement
request...), but there's not much to say about it. It's a dictionary
that contains key-value pairs. You can put whatever you like in there.
BTW: what is the impact of changing userInfo in a production
setting? Where would this be documented?
The only "impact" might be if you tried to edit the user info after
the model has been used -- see for example <http://
developer.apple.com/documentation/Cocoa/Reference/CoreData_ObjC/
Classes/NSPropertyDescription.html> 'setUserInfo:' ("This method
raises an exception if the receiver’s model has been used by an
object graph manager.").
Except, of course, if you replace or remove a key-value pair that
part of your application is expecting.
mmalc
_______________________________________________
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