9 Commits

Author SHA1 Message Date
Alex Rozanski 66d26c7c4a Merge pull request #54 from orta/elcap
Update demo for el cap
2016-06-29 20:43:41 +01:00
Alex Rozanski c939b2597f Merge pull request #58 from dinhviethoa/fix-crash-in-dealloc
Fixed crash in -PXSourceList dealloc
2016-06-29 20:42:47 +01:00
Alex Rozanski 037854c178 Merge pull request #59 from dinhviethoa/sierra-compatibility
Fixed compatibility with 10.12 Sierra
2016-06-29 20:41:38 +01:00
Hoa V. DINH b8e90dec19 Fixed for 10.12 2016-06-26 09:42:33 -07:00
Hoa V. DINH 83a09b299d Fixed potential crash 2016-06-26 08:37:46 -07:00
Orta Therox 978053929f Show transparency in example 2015-11-03 10:28:32 -05:00
Orta Therox f0e7809109 Update demo for el cap 2015-11-03 10:22:20 -05:00
Alex Rozanski bb53253cba Merge pull request #50 from orta/patch-1
Update README.markdown
2015-05-08 14:06:47 +01:00
Orta 54abae7a5a Update README.markdown 2015-05-08 11:30:57 +01:00
5 changed files with 45 additions and 25 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 411 KiB

@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9059"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -10,7 +11,7 @@
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<menu title="AMainMenu" systemMenu="main" id="29">
<items>
<menuItem title="ViewBasedSourceList" id="56">
@@ -650,30 +651,29 @@
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="335" y="390" width="707" height="453"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="878"/>
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
<view key="contentView" id="372">
<rect key="frame" x="0.0" y="0.0" width="707" height="453"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<splitView dividerStyle="thin" vertical="YES" translatesAutoresizingMaskIntoConstraints="NO" id="shf-dM-jNo">
<rect key="frame" x="0.0" y="0.0" width="707" height="453"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<customView id="5z6-z4-Eis">
<rect key="frame" x="0.0" y="0.0" width="192" height="453"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="24" horizontalPageScroll="10" verticalLineScroll="24" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Gyf-tN-jug">
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="26" horizontalPageScroll="10" verticalLineScroll="26" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Gyf-tN-jug">
<rect key="frame" x="0.0" y="0.0" width="192" height="453"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<clipView key="contentView" id="MeO-Mg-PDX">
<clipView key="contentView" drawsBackground="NO" id="MeO-Mg-PDX">
<rect key="frame" x="0.0" y="0.0" width="192" height="453"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<outlineView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="sourceList" multipleSelection="NO" autosaveColumns="NO" rowHeight="24" rowSizeStyle="systemDefault" viewBased="YES" indentationPerLevel="16" outlineTableColumn="KUf-Sx-qvM" id="6cp-sB-vmV" customClass="PXSourceList">
<rect key="frame" x="0.0" y="0.0" width="192" height="453"/>
<rect key="frame" x="0.0" y="0.0" width="192" height="0.0"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="0.0"/>
<animations/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="_sourceListBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
@@ -696,7 +696,7 @@
<subviews>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eai-EG-dRe">
<rect key="frame" x="0.0" y="1" width="189" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="HEADER CELL" id="5xY-Iv-ixB">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" red="0.43921568630000002" green="0.4941176471" blue="0.54901960780000003" alpha="1" colorSpace="calibratedRGB"/>
@@ -704,6 +704,7 @@
</textFieldCell>
</textField>
</subviews>
<animations/>
<connections>
<outlet property="textField" destination="eai-EG-dRe" id="6Az-Vc-kqF"/>
</connections>
@@ -712,33 +713,38 @@
<rect key="frame" x="1" y="17" width="189" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4ER-hQ-M6f">
<imageView misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4ER-hQ-M6f">
<rect key="frame" x="3" y="0.0" width="17" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSActionTemplate" id="VxW-Wd-dQJ"/>
</imageView>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="GsV-wD-pbj">
<textField verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="GsV-wD-pbj">
<rect key="frame" x="25" y="0.0" width="130" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="aO4-oB-jj3">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<customView ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3Wj-Kn-7YJ" customClass="PXSourceListBadgeView">
<customView misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3Wj-Kn-7YJ" customClass="PXSourceListBadgeView">
<rect key="frame" x="164" y="2" width="22" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
<constraint firstAttribute="height" constant="14" id="Lwo-5Q-Zmq"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="22" id="iAz-E3-9nO"/>
</constraints>
<animations/>
</customView>
</subviews>
<constraints>
<constraint firstItem="3Wj-Kn-7YJ" firstAttribute="leading" secondItem="GsV-wD-pbj" secondAttribute="trailing" constant="11" id="1UW-HO-ZSa"/>
<constraint firstItem="4ER-hQ-M6f" firstAttribute="top" secondItem="hLb-dC-CwP" secondAttribute="top" id="3LF-HY-wfc"/>
<constraint firstAttribute="trailing" secondItem="3Wj-Kn-7YJ" secondAttribute="trailing" constant="3" id="4vE-ts-quP"/>
<constraint firstItem="GsV-wD-pbj" firstAttribute="leading" secondItem="4ER-hQ-M6f" secondAttribute="trailing" constant="7" id="M3J-to-AOr"/>
<constraint firstItem="4ER-hQ-M6f" firstAttribute="leading" secondItem="hLb-dC-CwP" secondAttribute="leading" constant="3" id="aCY-7s-IhT"/>
<constraint firstAttribute="centerY" secondItem="3Wj-Kn-7YJ" secondAttribute="centerY" id="vSs-Ne-WPB"/>
</constraints>
<animations/>
<connections>
<outlet property="badgeView" destination="3Wj-Kn-7YJ" id="Tcs-WA-hkr"/>
<outlet property="imageView" destination="4ER-hQ-M6f" id="le3-qL-W27"/>
@@ -754,26 +760,30 @@
</connections>
</outlineView>
</subviews>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<animations/>
<nil key="backgroundColor"/>
</clipView>
<animations/>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="A8C-Fo-iI3">
<rect key="frame" x="1" y="-15" width="0.0" height="16"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="63c-xj-Ig0">
<rect key="frame" x="-15" y="1" width="16" height="0.0"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
</scrollView>
<button translatesAutoresizingMaskIntoConstraints="NO" id="BEV-Wz-OdK">
<rect key="frame" x="1" y="2" width="30" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="BbI-az-zo0"/>
<constraint firstAttribute="height" constant="21" id="OSH-IM-U1Y"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="30" id="Se2-9v-bwa"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="21" id="ZeV-jh-DKY"/>
</constraints>
<animations/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" controlSize="mini" state="on" imageScaling="proportionallyDown" inset="2" id="ZO1-1M-bSI">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="miniSystem"/>
@@ -784,11 +794,11 @@
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="iQU-Dr-qPa">
<rect key="frame" x="28" y="2" width="30" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="52p-Vm-2Nb"/>
<constraint firstAttribute="height" constant="21" id="ar8-y0-zCh"/>
</constraints>
<animations/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" controlSize="mini" enabled="NO" state="on" imageScaling="proportionallyDown" inset="2" id="xbS-Ax-KfO">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="miniSystem"/>
@@ -808,6 +818,7 @@
<constraint firstItem="Gyf-tN-jug" firstAttribute="top" secondItem="5z6-z4-Eis" secondAttribute="top" id="e1F-no-bdo"/>
<constraint firstAttribute="trailing" secondItem="Gyf-tN-jug" secondAttribute="trailing" id="ipE-wL-Vti"/>
</constraints>
<animations/>
</customView>
<customView id="V5U-wh-2o3">
<rect key="frame" x="193" y="0.0" width="514" height="453"/>
@@ -815,11 +826,11 @@
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rTW-wK-rrG">
<rect key="frame" x="18" y="212" width="478" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="474" id="7gl-Dw-sAL"/>
<constraint firstAttribute="height" constant="30" id="V8l-Fv-qd6"/>
</constraints>
<animations/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="DeD-wn-D0N">
<font key="font" metaFont="system" size="25"/>
<color key="textColor" white="0.33724908759124089" alpha="1" colorSpace="calibratedWhite"/>
@@ -831,8 +842,10 @@
<constraint firstAttribute="centerY" secondItem="rTW-wK-rrG" secondAttribute="centerY" id="H9N-qr-6zT"/>
<constraint firstAttribute="centerX" secondItem="rTW-wK-rrG" secondAttribute="centerX" id="LAH-FJ-z3S"/>
</constraints>
<animations/>
</customView>
</subviews>
<animations/>
<holdingPriorities>
<real value="250"/>
<real value="250"/>
@@ -845,6 +858,7 @@
<constraint firstAttribute="trailing" secondItem="shf-dM-jNo" secondAttribute="trailing" id="WD2-Bb-YK5"/>
<constraint firstItem="shf-dM-jNo" firstAttribute="top" secondItem="372" secondAttribute="top" id="zmB-td-zla"/>
</constraints>
<animations/>
</view>
</window>
<customObject id="494" customClass="AppDelegate">
@@ -859,7 +873,7 @@
</objects>
<resources>
<image name="NSActionTemplate" width="14" height="14"/>
<image name="NSAddTemplate" width="8" height="8"/>
<image name="NSRemoveTemplate" width="8" height="8"/>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
</resources>
</document>
</document>
@@ -146,6 +146,11 @@ static NSArray * __fastPathForwardingDataSourceMethods = nil;
return [NSMethodSignature signatureWithObjCTypes:description.types];
}
- (BOOL) isKindOfClass:(Class)aClass
{
return NO;
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
SEL sourceSelector = anInvocation.selector;
+1
View File
@@ -69,6 +69,7 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
- (void)dealloc
{
_delegateDataSourceProxy = nil;
//Remove ourselves as the delegate and data source to be safe
[super setDataSource:nil];
[super setDelegate:nil];
+1 -1
View File
@@ -28,7 +28,7 @@ Note that [in the OS X Human Interface Guidelines](https://developer.apple.com/l
## Using PXSourceList
### Installing with Cocoapods
### Installing with CocoaPods
You can install PXSourceList by adding the following line to your `Podfile`: