Implemented the new popoverShouldDetach delegate method.

This commit is contained in:
Damiano Galassi committed 2014-10-23 13:31:19 +02:00
1 parent fb06a95f23
commit bbc97d7718
3 files changed
+20 -11

No files matched your search

+14 -2
View File
@@ -402,10 +402,22 @@ static void *SBQueueContex = &SBQueueContex;
self.itemPopover.contentSize = size; self.itemPopover.contentSize = size;
} }
- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover { - (BOOL)popoverShouldDetach:(NSPopover *)popover
{
if (popover == self.popover) { if (popover == self.popover) {
return [self createOptionsWindow]; return YES;
} }
return NO;
}
- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover {
if (NSAppKitVersionNumber <= NSAppKitVersionNumber10_9) {
if (popover == self.popover) {
return [self createOptionsWindow];
}
}
return nil; return nil;
} }
+1 -4
View File
@@ -7,10 +7,7 @@
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBItemViewController"> <customObject id="-2" userLabel="File's Owner" customClass="SBItemViewController">
<connections> <connections>
<outlet property="destinationLabel" destination="eTa-uz-sjk" id="ivS-cY-3Jt"/>
<outlet property="editButton" destination="J0r-57-7ab" id="aR4-lN-fpm"/> <outlet property="editButton" destination="J0r-57-7ab" id="aR4-lN-fpm"/>
<outlet property="nameLabel" destination="ITP-pW-XrQ" id="o3b-Gi-Mey"/>
<outlet property="sourceLabel" destination="aBh-Is-f6Q" id="xCJ-Zl-gZ6"/>
<outlet property="spinner" destination="fCV-gk-gLV" id="1Vf-98-EBX"/> <outlet property="spinner" destination="fCV-gk-gLV" id="1Vf-98-EBX"/>
<outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/> <outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/>
</connections> </connections>
@@ -106,7 +103,7 @@
<rect key="frame" x="79" y="9" width="16" height="16"/> <rect key="frame" x="79" y="9" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</progressIndicator> </progressIndicator>
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="14" horizontalPageScroll="10" verticalLineScroll="14" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Skr-vw-eHq"> <scrollView focusRingType="none" borderType="none" autohidesScrollers="YES" horizontalLineScroll="14" horizontalPageScroll="10" verticalLineScroll="14" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Skr-vw-eHq">
<rect key="frame" x="97" y="28" width="317" height="19"/> <rect key="frame" x="97" y="28" width="317" height="19"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="hrx-7s-pPn"> <clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="hrx-7s-pPn">
+5 -5
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13F12" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies> <dependencies>
<deployment defaultVersion="1060" identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6250"/>
</dependencies> </dependencies>
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController"> <customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
@@ -12,8 +12,8 @@
</connections> </connections>
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView id="UlG-O3-eNc" userLabel="OptionsView"> <customView appearanceType="aqua" id="UlG-O3-eNc" userLabel="OptionsView">
<rect key="frame" x="0.0" y="0.0" width="334" height="281"/> <rect key="frame" x="0.0" y="0.0" width="334" height="281"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>