• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPropertyDescription userInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPropertyDescription userInfo
      • From: mmalcolm crawford <email@hidden>
References: 
 >NSPropertyDescription userInfo (From: "Steve@DotMac" <email@hidden>)
 >Re: NSPropertyDescription userInfo (From: Jim Correia <email@hidden>)
 >Re: NSPropertyDescription userInfo (From: mmalcolm crawford <email@hidden>)
 >Re: NSPropertyDescription userInfo (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Subclassing NSButton
  • Next by Date: Re: NSPropertyDescription userInfo
  • Previous by thread: Re: NSPropertyDescription userInfo
  • Next by thread: Re: NSPropertyDescription userInfo
  • Index(es):
    • Date
    • Thread