Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Info.plist



I'm having problem to set environment variables in the "Info.plist" configuration file of my C++ application build with XCode. I have stored the attached "Info.plist" file in the "Contents" folder of my application bundle but the application does not seem to have find variable "TEST_ENV_KEY" when using the stdc function getenv. Other environment variables that are set in the ".MacOSX/environment.plist" configuration file of the user can be retrieved properly by my application. What am i missing?

Thank you

-Dieter

---start---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>XVTSampleApplication</string>
<key>CFBundleIdentifier</key>
<string>com.apple.myCarbonApp</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSEnvironment</key>
<dict>
<key>TEST_ENV_KEY</key>
<string>TEST_ENV_VALUE</string>
</dict>
</dict>
</plist>
---end---



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.