Making settings read-only

You can make a setting visible but read-only, so users cannot change it.

Perform this task in the copy of the DeploymentKitApp in Xcode on your computer.

Procedure

  1. In the Navigator, open the file DeploymentKitApp/Settings/Settings.bundle/Root.plist.
  2. In the Property List view, find the setting to change to read only and expand its view to see its properties.
  3. For the setting's Type property, change the string value to Title.
    Note: If you edit this file in the Source Code view, change the value to PSTitleValueSpecifier.
  4. Save and close the file.

Result

The user can see the setting but not change it.

Example: Title is read-only

By default, the Title - Version property in the file Root.plist is set to read only, because its Type key is set to Title.

Key Type Value
Item 1 (Title - Version) Dictionary (4 items)
Type String Title
Default Value String
Title String Version
Identifier String app_version
Note: In the Source Code view, this section appears as follows.
<dict>
   <key>Type</key>
   <string>PSTitleValueSpecifier</string>
   <key>Title</key>
   <string>About</string>
Related concepts