• 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
Localizing a Managed Object Model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localizing a Managed Object Model


  • Subject: Localizing a Managed Object Model
  • From: Jim Correia <email@hidden>
  • Date: Wed, 12 Oct 2005 17:33:36 -0400

The documentation 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).


I've tried doing just that with both the CoreData Application and CoreData Document Based Application templates, and - [NSManagedObjectModel localizationDictionary] always returns nil.

I'm not averse to wiring things up by hand if necessary. Have I done something wrong? (As always, I'm happy to write bugs against the frameworks or docs as necessary.)

Jim

Here are the bundle layouts:

MyTestCDApp.app:
    Contents:
        Info.plist
        MacOS:
            MyTestCDApp
        PkgInfo
        Resources:
            English.lproj:
                InfoPlist.strings
                MainMenu.nib:
                    classes.nib
                    info.nib
                    keyedobjects.nib
                MyTestCDApp_DataModel.strings
            MyTestCDApp_DataModel.mom
            MyTestCDAppAppDelegate.h

MyCDTestDocumentBasedApp.app:
    Contents:
        Info.plist
        MacOS:
            MyCDTestDocumentBasedApp
        PkgInfo
        Resources:
            English.lproj:
                Credits.rtf
                InfoPlist.strings
                MainMenu.nib:
                    classes.nib
                    info.nib
                    keyedobjects.nib
                MyDocument.nib:
                    classes.nib
                    info.nib
                    keyedobjects.nib
                MyDocument.strings
            MyDocument.mom


_______________________________________________ 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
  • Prev by Date: NSStepper not enabling or disabling
  • Next by Date: Re: NSBezierPath bugs? (Contains point and fill)
  • Previous by thread: Re: NSStepper not enabling or disabling
  • Next by thread: Multiple NSSortDescriptors on NSTableColumn header click
  • Index(es):
    • Date
    • Thread