NSBundle using .stringsdict files MIA in 10.9?
NSBundle using .stringsdict files MIA in 10.9?
- Subject: NSBundle using .stringsdict files MIA in 10.9?
- From: Sean Todd <email@hidden>
- Date: Tue, 29 Oct 2013 10:59:13 -0500
According to the Framework release notes and WWDC 2013 videos, -[NSBundle localizedStringForKey:value:table:] is supposed to query a .stringsdict file for a key before looking in a .strings file. However, I find that a .stringsdict file is never used. I have created a property list file with the .stringsdict extension containing the appropriate keys/values as shown in the release notes and placed it into the appropriate lproj directory. Base SDK and deployment target are both set at 10.9. In code, I am making calls such as [NSString localizedStringWithFormat:NSLocalizedStringFromTable(@"%d Brick Categories", @"ListWindows", @"Pluralized form of BrickCategory entity key"), [theCategories count]]. When I run the app, I find that the localized values are never obtained from the .stringsdict file. It finds the key in a .strings file if present or fails and just returns the key if it is not present in the .strings file.
Is there some critical piece of the puzzle needed to get this work that was not mentioned in the videos or the release notes? Or is this functionality just missing in the initial release of 10.9?
Xcode Version 5.0.1 (5A2053)
OS X 10.9 (13A603)
Thanks,
Sean
_______________________________________________
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