Re: NSPropertyDescription userInfo
Re: NSPropertyDescription userInfo
- Subject: Re: NSPropertyDescription userInfo
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 5 Nov 2005 10:21:59 -0800
On Nov 5, 2005, at 9:10 AM, Jim Correia wrote:
Do you know what is going on with the second problem? Even with the
correct name, and localized name's appearing in the errors, -
[NSManagedObjectModel localizationDictionary] returns nil from the
document's initializer.
Should this be a dictionary populated with the same key/value pairs
as my .strings file? Is this a separate source of localization info?
The localisation dictionary is set up lazily by the persistent
document. If you do something in the user interface that requires a
localised string, it is retrieved correctly. You can set up the
dictionary directly yourself:
NSString *localizationDictionaryPath = [[NSBundle mainBundle]
pathForResource:@"MyDocumentModel" ofType:@"strings"];
NSDictionary *localizationDictionary = [NSDictionary
dictionaryWithContentsOfFile:localizationDictionaryPath];
[[self managedObjectModel]
setLocalizationDictionary:localizationDictionary];
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