Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying non-editable string in settings.bundle?

I have noticed that some applications add entries into the settings.bundle that simply represent a fixed/non-editable string.

enter image description here

I only see these in the list, and the only one close is "Text Field" but thats editable.

enter image description here

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

like image 739
fuzzygoat Avatar asked May 23 '12 17:05

fuzzygoat


2 Answers

Indeed you have to use title instead of textField and more specifically in order to produce the example you mention use the following tips:

  • In settings bundle under Root.plist add a new type title
  • Set title value to "Version"
  • In the same item add a new row and set this to 'Default value'
  • Set Default Value to "1.1.1"

This will produce a non-editable text field with title value on the left and Default value on the right.

like image 81
Vas Giatilis Avatar answered Sep 22 '22 16:09

Vas Giatilis


Instead of selecting TextField use Title

like image 21
Paul.s Avatar answered Sep 21 '22 16:09

Paul.s