Re: NSPropertyDescription userInfo
Re: NSPropertyDescription userInfo
- Subject: Re: NSPropertyDescription userInfo
- From: Jim Correia <email@hidden>
- Date: Sat, 5 Nov 2005 11:29:12 -0500
On Nov 5, 2005, at 11:20 AM, Jim Correia wrote:
I built a app based on the CoreData Document stationery.
Since the the model is MyDocument.xcdatamodel, I include a
MyDocument.strings file with the contents:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdMOM.html#//apple_ref/doc/uid/TP40002328-SW3> says:
"The easiest way to localize a model is to create a corresponding
strings fileāthe strings file name is the same as the model file
name, but with a .strings rather than a .xcdatamodel extension (for
example, for a model file named MyDocumentModel.xcdatamodel the
corresponding strings file is MyDocumentModel.strings)."
Since my model was named MyDocument.xcdatamodel, I named the strings
file MyDocument.strings. That didn't work.
Naming it MyDocumentModel.strings does seem to work(*), but isn't
what the documentation says.
It also means if I have named my model MyDocumentModel.xcdatamodel,
then the strings file must be named the somewhat non-sensical
MyDocumentModelModel.strings.
The localization dict is nil in the document's designated initializer.
(*)Even in the working case above, -[NSManagedObjectModel
localizationDictionary] returns nil in the document's initializer.
Should it? Report a bug?
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