IT tutorials
 
Mobile
 

iOS SDK : Application Settings - The Settings Bundle (part 4) - PSSliderSpecifier, PSChildPaneSpecifier

5/3/2013 9:07:47 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

5. PSSliderSpecifier

The PSSliderSpecifier is for selecting a value from a range of values. Table 5 summarizes PSSliderSpecifier’s settings.

Table 5. PSSliderSpecifier Settings
KeyPurposeTypeValid ValuesRequired
TypeSpecifies preference typeStringPSSliderSpecifierYes
KeySpecifies the preference’s key used for storage and retrievalStringAny string valueYes
DefaultValueSpecifies a default value for the preferenceRealAny number between minimum and maximum valuesYes
MinimumValueMinimum value for sliderRealAny numberYes
MaximumValueMaximum value for sliderRealAny numberYes
MinimumValueImagePath to image (21 × 21 pixels)StringValid pathNo
MaximumValueImagePath to image (21 × 21) pixelsStringValid pathNo

Try This: Adding a PSSliderSpecifier

  1. Return to Root.plist and add a new item below Item 3.

  2. Change the newly added item to a Dictionary type. Expand the new Item 4 and add two child rows below it.

  3. Assign the first child item’s key to Type, type to String, and value to PSGroupSpecifier.

  4. Assign the second child item’s key to Title, type to String, and value to Intensity.

  5. Close Item 4 and add another item after it. Change the new Item 5’s type to Dictionary. Expand the newly added item and add six child rows.

  6. Change the first child row’s key to Type, type to String, and value to PSSliderSpecifier. Change the third child row’s key to Key, type to String, and value to keyFour. Change the fourth child row’s key to DefaultValue, type to Number, and value to 5. Change the fifth child row’s key to MinimumValue, type to Number, and value to 0. Change the sixth child row’s key to MaximumValue, type to Number, and value to 10. Figure 11 shows Root. plist after making the changes.

    Figure 11. Root.plist with the PSSliderSpecifier added
  7. Save the .plist file.

  8. Click Run, and the changes appear in the Settings application (Figure 12).

    Figure 12. Settings reflects the new setting


6. PSChildPaneSpecifier

The PSChildPaneSpecifier is for specifying a child pane in the Settings application. You define the settings in this pane in a separate .plist file. Table 6 summarizes PSChildSpecifier’s settings.

Table 6. PSChildPaneSpecifier Settings
KeyPurposeTypeValid ValuesRequired
TypeSpecifies preference type.StringPSChildPaneSpecifierYes
TitleSpecifies the title displayed by the Settings application.StringAny string valueYes
FileSpecifies the file used for the child pane.StringThe .plist file name without the extensionYes

Try This: Adding a PSChildPaneSpecifier

  1. Return to Root.plist and add Item 6. Change its type to Dictionary. Expand and add three child rows.

  2. Change the first child row’s key to Type, type to String, and value to PSChildPaneSpecifier. Change the second child row’s key to Title, type to String, and value to Shade. Change the third child row’s key to File, type to String, and value to Shades (Figure 13).

    Figure 13. Root.plist with the PSChildPaneSpecifier added

  3. Save.

  4. Create a new property list (Figure 14). Name the file Shades.

    Figure 14. Creating a new property list
  5. Open Shades.plist in the editor and add one row. Change the row’s key to Title, type to String, and value to Shades (Figure 15).

    Figure 15. The Shades.plist settings
  6. Save.

  7. Click Build And Go. The change is reflected in the Settings application (Figure 16).

    Figure 16. Application’s settings pane shows the new subpane
 
Others
 
- iOS SDK : Application Settings - The Settings Bundle (part 3) - PSMultiValueSpecifier
- iOS SDK : Application Settings - The Settings Bundle (part 2) - Settings Field Types
- iOS SDK : Application Settings - The Settings Bundle (part 1)
- Ipad : Your Calendar - Calendar Options - Changing the Default Calendar
- Ipad : Your Calendar - Editing Appointments, Meeting Invitations
- BlackBerry Bold 9700 and 9650 Series : Email Set Up - BlackBerry Enterprise Server Express
- BlackBerry Bold 9700 and 9650 Series : Email Set Up - Set Up or Adjust Email Accounts from Your Computer
- BlackBerry Bold 9700 and 9650 Series : Email Set Up - Troubleshooting Your Email Accounts
- Windows Phone 7 : Building 2D Games with the XNA Framework (part 2) - AlienShooter Game Structure
- Windows Phone 7 : Building 2D Games with the XNA Framework (part 1)
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us