Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ProjectBuilder - Build Settings Vars and info.Plist

ProjectBuilder - Build Settings Vars and info.Plist
Thread Tools
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jan 9, 2003, 07:42 PM
 
Hi,

In the December Dev tools update the release notes state:

? Build settings can now be referenced in the Info.plist Settings dictionary of a target. _
The syntax is the same as elsewhere, i.e. $VAR, $(VAR), and ${VAR} are all recognized. _

For example, if you have a build setting named CURRENT_VERSION, you can use its value in any of the values in the Info.plist dictionary
(e.g. CFBundleGetInfoString = "MyApp v$(CURRENT_VERSION)"). _

Any build setting reference that either uses invalid syntax or references an undefined build setting are left untouched
?if, for example, the value of the NSHumanReadableCopyright _key is "Shareware $10", the ?$10? part will be left untouched.

Also, only references in dictionary values are expanded?dictionary keys cannot contain references to build settings."


however I cannot get this to work - e.g.

http://www.monkeyfood.com/thestuff/f...x/Settings.jpg

and

http://www.monkeyfood.com/thestuff/f...eBox/Plist.jpg

only result in:

http://www.monkeyfood.com/thestuff/f...ox/GetInfo.jpg

Has anyone had better results?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2