PSToggleSwitchSpecifier doesn't seem to use TrueValue / FalseValue

Originator:avedesk
Number:rdar://26541820 Date Originated:30-May-2016 04:35 PM
Status:Open Resolved:
Product:iOS SDK Product Version:9.3.2
Classification:Other Bug Reproducible:Always
 
Summary:
Using a PSToggleSwitchSpecifier in a Settings.bundle with a  custom TrueValue / FalseValue does still seem to write a boolean to the defaults.

Steps to Reproduce:
1. Add a Settings.bundle item with type PSToggleSwitchSpecifier, Key = "something", TrueValue = "enabled", FalseValue = "disabled"
2. Toggle the toggle to on/off

Expected Results:
1. user defaults contain "something" = "enabled" or "something" = "disabled"

Actual Results:
1. User defaults contain "something"=0 or "something"=1

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!