Specifying an uneditable line in settings.bundle?

I noticed that some applications add entries to settings.bundle, which simply represent a fixed / non-editable string.

enter image description here

I see them only in the list, and the only thing that is close is the "Text box", but it is being edited.

enter image description here

Is there a way to specify this in Root.plist?

+7
source share
2 answers

Instead of selecting TextField use Title

+8
source

Indeed, you need to use the title instead of textField, and more specifically, to give the example you mentioned, use the following tips:

  • In the parameter set in Root.plist add a new type header
  • Set the title value to "Version"
  • In the same element, add a new row and set it to "Default value"
  • Set the default value to "1.1.1"

This will result in an editable text field with a title right on the left and a default value on the right.

+8
source

All Articles