Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read-Only string in settings bundle

I've added a Settings.bundle, however while displaying version numbers I'd like the fields to be read-only.

I've seen a few suggestions that say to change the type from text to title, but when I do this, the settings entry isn't displayed.

enter image description here

like image 300
VaporwareWolf Avatar asked Apr 15 '13 21:04

VaporwareWolf


1 Answers

        <array>    
            <dict>
                <key>Type</key>
                <string>PSGroupSpecifier</string>
                <key>Title</key>
                <string>version</string>
            </dict>
            <dict>
                <key>DefaultValue</key>
                <string>1.1</string>
                <key>Key</key>
                <string>version</string>
                <key>Title</key>
                <string>version</string>
                <key>Type</key>
                <string>PSTitleValueSpecifier</string>
            </dict>
        </array>

I am able to add readonly variable 'Version' with the above dictionary in root.plist. Have you set using Title specifier ?? Or Try adding above dict. in your root.plist , this will add readonly title in your settings in group style.

like image 150
iCoder Avatar answered Sep 25 '22 13:09

iCoder