• 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
Programmatically Accessing Core Data Localization Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically Accessing Core Data Localization Strings


  • Subject: Programmatically Accessing Core Data Localization Strings
  • From: Sebastian Celis <email@hidden>
  • Date: Mon, 22 Jun 2009 20:56:50 -0500

Hello,

I have a strings file defined for my Core Data model. As such, my
Data.xcdatamodel file has a corresponding DataModel.strings file. This
seems to work great for auto-generated messages, but now I have a need
to access these localized strings programmatically. NSLocalizedString
does not seem to find them, and the localizationDictionary property of
my NSManagedObjectModel is often nil (the documentation states that
this is loaded lazily).

How can I go about localizing the names of my properties and entities
from code? I could theoretically duplicate all of my DataModel.strings
strings into my applications main strings file. However that really
doesn't seem ideal. Do I have a better option?

Thank you,
Sebastian
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Programmatically Accessing Core Data Localization Strings
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: number box class from NSTextField
  • Next by Date: Re: Programmatically Accessing Core Data Localization Strings
  • Previous by thread: re: Cascade Delete won't delete Department in Apple Sample Code
  • Next by thread: Re: Programmatically Accessing Core Data Localization Strings
  • Index(es):
    • Date
    • Thread