FutureBasic Logo

<<    Index    >> FutureBasic

#plist   statement



Syntax
#plist key [,] value

Description
The #plist statement can be used to add or modify a key/value pair in the built app's Info.plist. It does not alter an Info.plist file contained in the app's source folder. The key parameter must be a string literal. The value parameter must be a string literal, numeric literal, CFArray literal or CFDictionary literal.

Parameters
Parameter
Description
key Must be a string literal. Multiple-word keys must be enclosed in quotes.
value Must be a string literal, boolean literal, CFArray literal or CFDictionary literal. Integer and float values are converted to strings.
Multiple-word values must be enclosed in quotes.
 
Examples
#plist NSAppleEventUsageDescription YES
#plist CFBundleIconFile @"AppIcon"
#plist CFBundleIdentifier @"com.fbdeveloper.MyGreatApp"
#plist CFBundleShortVersionString 1.23
#plist CFBundleVersion 98765
#plist LSItemContentTypes @[@"public.plain-text"]
#plist MyArray @[@"One",@"Two",@"Three",@"O'Leary"]
#plist MyDictionary @{@"Key1":@"Value1",@"Key2":@"Value2"}
#plist MyString word
#plist @"Another String" @"something else"
// multiple-word keys or values must be enclosed in quotes