<?xml version="1.0" encoding="UTF-8"?>
<!--
   IBNSNumberFormatter.inspector
   InterfaceBuilder

   Created by Joey Hagedorn on 03/16/10.
   Copyright 2010-2016 Apple Inc. All rights reserved.
-->

<slice>
    <section>
        <chooser title="Behavior" keyPath="inspectedObjectsController.selection.object.ibInspectedFormatterBehavior" type="number">
            <choice value="1000" title="OS X 10.0+">
                <sliver>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedTenOhMinimum" formatStyle="decimal" allowsNilValues="YES" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMinimumDefaultValue" title="Minimum" nilPlaceholder="None"/>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedTenOhMaximum" formatStyle="decimal" allowsNilValues="YES" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMaximumDefaultValue" title="Maximum" nilPlaceholder="None"/>
                </sliver>
                <sliver title="Positive">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedPositiveFormat" placeholderKeyPath="inspectedObjectsController.selection.object.positiveFormat"/>
                </sliver>
                <sliver title="Negative">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedNegativeFormat" placeholderKeyPath="inspectedObjectsController.selection.object.negativeFormat"/>
                </sliver>
                <sliver title="Zero">
                    <property type="string" allowsNilValues="YES" attributed="true" keyPath="inspectedObjectsController.selection.object.ibShadowedAttributedStringForZero" placeholder="Zero"
                        appearanceKeyPath="inspectedObjectsController.selection.object.effectiveAppearance"/>
                </sliver>
                <sliver title="Nil">
                    <property type="string" allowsNilValues="YES" attributed="true" keyPath="inspectedObjectsController.selection.object.ibShadowedAttributedStringForNil" placeholder="Nil"
                        appearanceKeyPath="inspectedObjectsController.selection.object.effectiveAppearance"/>
                </sliver>
                <sliver title="Not A Number">
                    <property type="string" allowsNilValues="YES" attributed="true" keyPath="inspectedObjectsController.selection.object.ibShadowedAttributedStringForNotANumber" placeholder="Not A Number"
                        appearanceKeyPath="inspectedObjectsController.selection.object.effectiveAppearance"/>
                </sliver>
                <sliver title="Separator">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedThousandSeparator"/>
                </sliver>
                <sliver>
                    <property type="boolean" title="Negative in Red" keyPath="inspectedObjectsController.selection.object.ibInspectedShowsNegativeNumbersInRed"/>
                    <property type="boolean" title="Add Thousands Separators" keyPath="inspectedObjectsController.selection.object.hasThousandSeparators"/>
                    <property type="boolean" title="Localize Format" keyPath="inspectedObjectsController.selection.object.ibExternalLocalizesFormat"/>
                </sliver>
                <sliver title="Presets">
                    <property type="custom" class="IBNSNumberFormatterPresetsSlice" nibName="IBNSNumberFormatterPresetSlice"/>
                </sliver>
            </choice>
            <choice value="1041" title="OS X 10.4+ Default">
                <sliver title="Style">
                    <property type="enumeration" keyPath="inspectedObjectsController.selection.object.ibInspectedNumberStyle">
                        <option-group>
                            <option value="0" title="None"/>
                        </option-group>
                        <option-group>
                            <option value="1" title="Decimal"/>
                            <option value="3" title="Percent"/>
                            <option value="4" title="Scientific"/>
                            <option value="5" title="Spell Out"/>
                            <option value="6" title="Ordinal"/>
                        </option-group>
                        <option-group>
                            <option value="2" title="Currency"/>
                            <option value="8" title="Currency ISO Code"/>
                            <option value="9" title="Currency Plural"/>
                            <option value="10" title="Currency Accounting"/>
                        </option-group>
                    </property>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.minimum" allowsNilValues="YES" formatStyle="decimal" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMinimumDefaultValue" title="Minimum" nilPlaceholder="None"/>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.maximum" allowsNilValues="YES" formatStyle="decimal" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMaximumDefaultValue" title="Maximum" nilPlaceholder="None"/>
                    <property type="boolean" title="Localize Format" keyPath="inspectedObjectsController.selection.object.ibExternalLocalizesFormat"/>
                    <property type="boolean" title="Lenient" keyPath="inspectedObjectsController.selection.object.lenient"/>
                </sliver>
            </choice>
            <choice value="1040" title="OS X 10.4+ Custom">
                <sliver title="Format (+)">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedPositiveFormat" placeholderKeyPath="inspectedObjectsController.selection.object.positiveFormat"/>
                </sliver>
                <sliver title="Format (-)">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedNegativeFormat" placeholderKeyPath="inspectedObjectsController.selection.object.negativeFormat"/>
                </sliver>
                <sliver>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.minimum" formatStyle="decimal" allowsNilValues="YES" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMinimumDefaultValue" title="Minimum" nilPlaceholder="None"/>
                    <property type="number" keyPath="inspectedObjectsController.selection.object.maximum" formatStyle="decimal" allowsNilValues="YES" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibMaximumDefaultValue" title="Maximum" nilPlaceholder="None"/>
                </sliver>
                <sliver title="Padding">
                    <property type="enumeration" keyPath="inspectedObjectsController.selection.object.paddingPosition">
                        <option-group>
                            <option value="0" title="Before Prefix"/>
                            <option value="1" title="After Prefix"/>
                        </option-group>
                        <option-group>
                            <option value="2" title="Before Suffix"/>
                            <option value="3" title="After Suffix"/>
                        </option-group>
                    </property>
                </sliver>
                <sliver title="Padding Width">
                    <property type="number" keyPath="inspectedObjectsController.selection.object.formatWidth"/>
                </sliver>
                <sliver title="Padding Char">
                    <property type="string" allowsNilValues="YES" keyPath="inspectedObjectsController.selection.object.ibShadowedPaddingCharacter" placeholderKeyPath="inspectedObjectsController.selection.object.paddingCharacter"/>
                </sliver>
                <sliver title="Rounding Mode">
                    <property type="enumeration" keyPath="inspectedObjectsController.selection.object.roundingMode">
                        <option-group>
                            <option value="0" title="Ceiling"/>
                            <option value="1" title="Floor"/>
                            <option value="2" title="Down"/>
                            <option value="3" title="Up"/>
                            <option value="4" title="Half Even"/>
                            <option value="5" title="Half Down"/>
                            <option value="6" title="Half Up"/>
                        </option-group>
                    </property>
                </sliver>
                <sliver title="Increment">
                    <property type="number" formatStyle="decimal" keyPath="inspectedObjectsController.selection.object.ibInspectedRoundingIncrement"/>
                </sliver>
                <sliver title="Multiplier">
                    <property type="number" keyPath="inspectedObjectsController.selection.object.multiplier"/>
                </sliver>
                <sliver title="Grouping">
                    <property type="number" title="Primary" keyPath="inspectedObjectsController.selection.object.groupingSize"/>
                    <property type="number" title="Secondary" keyPath="inspectedObjectsController.selection.object.secondaryGroupingSize"/>
                </sliver>
                <sliver>
                    <property type="boolean" title="Grouping Separator" keyPath="inspectedObjectsController.selection.object.usesGroupingSeparator"/>
                    <property type="boolean" title="Allows Floats" keyPath="inspectedObjectsController.selection.object.allowsFloats"/>
                    <property type="boolean" title="Generate Decimal Numbers" keyPath="inspectedObjectsController.selection.object.generatesDecimalNumbers"/>
                    <property type="boolean" title="Always Shows Decimal" keyPath="inspectedObjectsController.selection.object.alwaysShowsDecimalSeparator"/>
                    <property type="boolean" title="Localize Format" keyPath="inspectedObjectsController.selection.object.ibExternalLocalizesFormat"/>
                    <property type="boolean" title="Lenient" keyPath="inspectedObjectsController.selection.object.lenient"/>
                </sliver>
                <sliver title="Integer Digits">
                    <property type="number" title="Minimum" keyPath="inspectedObjectsController.selection.object.minimumIntegerDigits"/>
                    <property type="number" title="Maximum" keyPath="inspectedObjectsController.selection.object.maximumIntegerDigits"/>
                </sliver>
                <sliver title="Fraction Digits">
                    <property type="number" title="Minimum" keyPath="inspectedObjectsController.selection.object.minimumFractionDigits"/>
                    <property type="number" title="Maximum" keyPath="inspectedObjectsController.selection.object.maximumFractionDigits"/>
                </sliver>
                <sliver title="Symbols">
                    <property type="custom" class="IBNSNumberFormatterExtraOptionsSlice" nibName="IBNSNumberFormatterExtraOptions"/>
                </sliver>
            </choice>
        </chooser>
    </section>
    <section>
        <sliver title="Sample Input">
            <property type="number" keyPath="inspectedObjectsController.selection.object.ibExternalSampleValue" formatStyle="decimal" formatForDisplay="NO"/>
        </sliver>
        <sliver title="Sample Output">
            <property type="string" placeholder="Formatted String" keyPath="inspectedObjectsController.selection.object.ibExternalSampleValueFormatted" editable="false"/>
        </sliver>
    </section>
</slice>
