Add some accessibility labels in the xibs.

This commit is contained in:
Damiano Galassi committed 2016-10-20 15:59:31 +02:00
1 parent 1ac3e109a6
commit 53be0cec62
16 files changed
+106 -45

No files matched your search

@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11191" systemVersion="16A286a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11191"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBMetadataPrefsViewController">
@@ -28,7 +29,7 @@
<rect key="frame" x="1" y="0.0" width="362" height="348"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="REl-53-Sku" viewBased="YES" id="Tid-Rc-Ljr">
<tableView toolTip="Metadata map" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="REl-53-Sku" viewBased="YES" id="Tid-Rc-Ljr">
<rect key="frame" x="0.0" y="0.0" width="362" height="325"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
@@ -150,10 +151,11 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</tokenFieldCell>
<connections>
<accessibilityConnection property="title" destination="8sr-aI-VZy" id="UTJ-oj-Jbd"/>
<outlet property="delegate" destination="-2" id="vWU-Nj-Joo"/>
</connections>
</tokenField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sd5-qb-K5v">
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sd5-qb-K5v">
<rect key="frame" x="197" y="100" width="26" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="9UV-xM-L5F">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -164,7 +166,7 @@
<binding destination="4Wq-Wo-sl2" name="enabled" keyPath="selectionIndexes.count" id="K6b-sv-ld3"/>
</connections>
</button>
<popUpButton verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="Jdh-Cj-6ef">
<popUpButton toolTip="Add annotation" verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="Jdh-Cj-6ef">
<rect key="frame" x="166" y="100" width="32" height="22"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="zjQ-DY-ahs"/>
@@ -252,6 +254,7 @@
</prototypeCellViews>
</tableColumn>
</tableColumns>
<accessibility description="Metadata type"/>
<connections>
<binding destination="RId-BH-Y2G" name="content" keyPath="arrangedObjects" id="jcZ-Ta-ZjW"/>
<binding destination="RId-BH-Y2G" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="jcZ-Ta-ZjW" id="xnp-ML-pVC"/>
@@ -286,7 +289,7 @@
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="MKe-YL-gx8"/>
</constraints>
<buttonCell key="cell" type="smallSquare" title="Restore Defaults" bezelStyle="smallSquare" image="3BF8FDC0-60AB-4B31-A1CF-34ABBADD52C4" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nBh-jv-KDG">
<buttonCell key="cell" type="smallSquare" title="Restore Defaults" bezelStyle="smallSquare" image="E7047C23-81DB-4FA1-9E9E-25A6A3E79242" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nBh-jv-KDG">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -338,7 +341,7 @@
<userDefaultsController representsSharedInstance="YES" id="LQR-UU-5Gl"/>
</objects>
<resources>
<image name="3BF8FDC0-60AB-4B31-A1CF-34ABBADD52C4" width="1" height="1">
<image name="E7047C23-81DB-4FA1-9E9E-25A6A3E79242" width="1" height="1">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGPT5YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
GR4fIyQrLjE3OlUkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2548a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
@@ -81,7 +81,7 @@
<rect key="frame" x="332" y="1" width="20" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IXy-8d-VMc">
<button toolTip="Show set details" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IXy-8d-VMc">
<rect key="frame" x="0.0" y="0.0" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="info" imagePosition="overlaps" alignment="center" alternateImage="info-pressed" imageScaling="proportionallyDown" inset="2" id="BeK-4k-Hpl">
@@ -97,6 +97,7 @@
</prototypeCellViews>
</tableColumn>
</tableColumns>
<accessibility description="Sets"/>
<connections>
<outlet property="dataSource" destination="-2" id="gR8-PF-d1s"/>
<outlet property="delegate" destination="-2" id="7vy-Zv-6Zh"/>
@@ -116,7 +117,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SIg-lA-6FA">
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SIg-lA-6FA">
<rect key="frame" x="20" y="19" width="25" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="25" id="KCi-qM-zwt"/>
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="16A238m" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBChapterViewController">
@@ -35,7 +36,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="14" headerView="23" id="22" customClass="SBTableView">
<rect key="frame" x="0.0" y="0.0" width="446" height="16"/>
<rect key="frame" x="0.0" y="0.0" width="446" height="177"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -316,6 +317,7 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
</tableColumn>
</tableColumns>
<accessibility description="Chapters"/>
<connections>
<outlet property="dataSource" destination="-2" id="28"/>
<outlet property="delegate" destination="-2" id="29"/>
@@ -336,7 +338,7 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
<button verticalHuggingPriority="750" id="31">
<button toolTip="Delete selected chapter" verticalHuggingPriority="750" id="31">
<rect key="frame" x="42" y="7" width="26" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="32">
@@ -347,7 +349,7 @@
<action selector="removeChapter:" target="-2" id="48"/>
</connections>
</button>
<button verticalHuggingPriority="750" id="42">
<button toolTip="Add chapter" verticalHuggingPriority="750" id="42">
<rect key="frame" x="17" y="7" width="26" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="43">
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2548a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
@@ -268,6 +268,7 @@
</prototypeCellViews>
</tableColumn>
</tableColumns>
<accessibility description="Metadata"/>
<connections>
<outlet property="dataSource" destination="-2" id="bX0-dK-1vT"/>
<outlet property="delegate" destination="-2" id="haa-fZ-mJc"/>
@@ -315,7 +316,7 @@
<rect key="frame" x="17" y="36" width="448" height="199"/>
<clipView key="contentView" copiesOnScroll="NO" id="7IP-Gn-Bxd">
<rect key="frame" x="1" y="1" width="446" height="197"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="1" allowsReordering="YES" animates="YES" translatesAutoresizingMaskIntoConstraints="NO" id="217" customClass="SBImageBrowserView">
<rect key="frame" x="0.0" y="0.0" width="446" height="197"/>
+10 -2
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="16A270f" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBSoundViewController">
@@ -46,6 +47,7 @@
<font key="font" metaFont="smallSystem"/>
</sliderCell>
<connections>
<accessibilityConnection property="title" destination="AN1-Gb-9rU" id="f6H-6D-w1r"/>
<action selector="setTrackVolume:" target="-2" id="0Ho-Rr-WEf"/>
</connections>
</slider>
@@ -56,6 +58,9 @@
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<connections>
<accessibilityConnection property="title" destination="jSp-EO-3Gh" id="S3r-r1-JRJ"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="AHt-fF-cmH">
<rect key="frame" x="48" y="78" width="91" height="14"/>
@@ -86,6 +91,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="oJQ-vl-QbS" id="Cbl-Aq-ObF"/>
<action selector="setAltenateGroup:" target="-2" id="8eX-zt-IUC"/>
</connections>
</popUpButton>
@@ -104,6 +110,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="AHt-fF-cmH" id="xln-Xh-ghS"/>
<action selector="setFallbackTrack:" target="-2" id="Q66-7F-b86"/>
</connections>
</popUpButton>
@@ -130,6 +137,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="Wwd-LM-Zu2" id="c2I-EU-yGn"/>
<action selector="setFollowsTrack:" target="-2" id="I5X-MY-2Fu"/>
</connections>
</popUpButton>
+13 -2
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11198.2" systemVersion="16A294a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11198.2"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBVideoViewController">
@@ -60,6 +61,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Aspect Ratio Denominator"/>
<connections>
<action selector="setPixelAspect:" target="-2" id="zHv-hb-Eln"/>
</connections>
@@ -94,6 +96,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Offset Y"/>
<connections>
<action selector="setSize:" target="-2" id="iAh-zt-i9D"/>
</connections>
@@ -127,6 +130,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Scaled Size Height"/>
<connections>
<action selector="setSize:" target="-2" id="7p2-ss-WWu"/>
</connections>
@@ -191,6 +195,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Offset X"/>
<connections>
<action selector="setSize:" target="-2" id="wz0-CC-lEV"/>
</connections>
@@ -225,6 +230,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Aspect Ratio Numerator"/>
<connections>
<action selector="setPixelAspect:" target="-2" id="aTM-Xt-B1U"/>
</connections>
@@ -243,6 +249,7 @@
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Scaled Size Width"/>
<connections>
<action selector="setSize:" target="-2" id="O4u-E2-FlA"/>
</connections>
@@ -265,6 +272,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="HtH-F7-8Bv" id="0DU-hM-PDS"/>
<action selector="setAltenateGroup:" target="-2" id="ig3-Ec-Cz0"/>
</connections>
</popUpButton>
@@ -328,6 +336,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/>
<action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/>
</connections>
</popUpButton>
@@ -343,6 +352,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="fwe-5g-QAo" id="iiM-Xt-mRA"/>
<action selector="setForcedTrack:" target="-2" id="kGE-XO-FuP"/>
</connections>
</popUpButton>
@@ -408,6 +418,7 @@
</menu>
</popUpButtonCell>
<connections>
<accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/>
<action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/>
</connections>
</popUpButton>