• 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: .r or .strings file not being read in framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .r or .strings file not being read in framework


  • Subject: Re: .r or .strings file not being read in framework
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 6 Apr 2007 12:11:13 -0600


On Apr 6, 2007, at 10:42 AM, Mike Linden wrote:

I have a framework compiled with Xcode 2.4.1. When I include either a .r
file and try and us ::GetIndString, or I try and use .strings file and use
CFCopyLocalizedString, neither will return the value from the external file.
In the case of .r, it returns a NULL string, and in the case of .strings it
returns the 'key' value. Both files are placed in the 'English.lproj'
directory within the project file, and both files were included in the phase
'Build ResourceManager Resources'. Once compiled, the files are in the
correct location of the executable framework project.


Any idea as to what I might be missing here?

CFCopyLocalizedString() loads strings from the localized strings table in the main bundle; you probably want to use CFCopyLocalizedStringFromTableInBundle() instead.


Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >.r or .strings file not being read in framework (From: Mike Linden <email@hidden>)

  • Prev by Date: Re: Range of 32 bit values
  • Next by Date: Changing copyright template
  • Previous by thread: .r or .strings file not being read in framework
  • Next by thread: .r or .strings file not being read in framework
  • Index(es):
    • Date
    • Thread