Re: NSBundle using .stringsdict files MIA in 10.9?
Re: NSBundle using .stringsdict files MIA in 10.9?
- Subject: Re: NSBundle using .stringsdict files MIA in 10.9?
- From: Sean Todd <email@hidden>
- Date: Tue, 29 Oct 2013 17:03:16 -0500
I used the Property List resource template to generate a new property list file and then changed the extension from .plist to .stringsdict.
I have also tried changing the file type in Xcode. Nothing has worked for me. There is no mention of any special way to create this type of file. There is just an example of its content in the release notes:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
...
</dict>
</plist>
This is what I have been using.
On Oct 29, 2013, at 11:39 AM, Kyle Sluder <email@hidden> wrote:
>> On Oct 29, 2013, at 8:59 AM, Sean Todd <email@hidden> wrote:
>
>>
>> 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.
>
> I haven’t tried the functionality out yet myself, but when you say “created a property list file,” do you mean an actual XML property list? I would be surprised if that worked. The example stringsdict uses a syntax not dissimilar from the typical ASCII-plist-esque strings file.
>
> --Kyle Sluder
_______________________________________________
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