• 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: 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


  • Follow-Ups:
    • Re: NSPropertyDescription userInfo
      • From: Jim Correia <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>)
 >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: RE : newbie: adding nibs: i'm stuck
  • Next by Date: How do I programmatically access multiple data models within XCode 2.1?
  • Previous by thread: Re: NSPropertyDescription userInfo
  • Next by thread: Re: NSPropertyDescription userInfo
  • Index(es):
    • Date
    • Thread