Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
CFBundleGetValueForInfoDictionaryKey doesn't seem to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFBundleGetValueForInfoDictionaryKey doesn't seem to work



I have the following two calls in my app:

CFBundleRef appBundle = CFBundleGetMainBundle() ;
CFStringRef text = (CFStringRef) CFBundleGetValueForInfoDictionaryKey(appBundle, CFSTR("CFBundleGetInfoString") ;

This leads to text = NULL. If I replace "CFBundleGetInfoString" with "CFBundleExecutable" I do get text. It seems that anything that is not my "Info.plist" file but in my "InfoPlist.string" file is not found by CFBundleGetValueForInfoDictionaryKey. Any ideas what the reason could be?

The structure of my package is:

Contents
Info.plist
MacOS
PkgInfo
Resources
English.lproj
InfoPlist.string
main.nib

Note that my nib file is correctly located by a CreateNibReference call.

I am running Mac OS X 10.0.4.

Any help appreciated,

David.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.