Permalink
Browse files

Fix manual removal button on localizations and whitelists

  • Loading branch information...
1 parent 48b6794 commit 12be12a0b6a3d7f17ccd7c7f62867a8b30fc45e4 @cstigler cstigler committed Oct 20, 2014
@@ -115,6 +115,7 @@ int main(int argc, char* argv[]) {
arguments: @[@"unload",
@"/Library/LaunchDaemons/org.eyebeam.SelfControl.plist"]];
[task waitUntilExit];
+
status = [task terminationStatus];
[log appendFormat: @"Unloading the launchd daemon returned: %d\n\n", status];
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" promptedForUpgradeToXcode5="NO">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1070" identifier="macosx"/>
<development version="5100" identifier="xcode"/>
@@ -12,7 +12,7 @@
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
+ <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="SelfControl" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="31" userLabel="Panel (SelfControl)" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" utility="YES" HUD="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
@@ -34,7 +34,7 @@
<button verticalHuggingPriority="750" id="49">
<rect key="frame" x="46" y="10" width="119" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="3FC69F45-C71A-4702-A5D8-A44101BA9957" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
+ <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="9833FB2C-EFEC-4A1A-B43C-2F4403A83699" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
@@ -47,6 +47,17 @@
</binding>
</connections>
</button>
+ <button hidden="YES" verticalHuggingPriority="750" id="drr-6H-Ase">
+ <rect key="frame" x="28" y="10" width="159" height="17"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <buttonCell key="cell" type="roundRect" title="Stuck? Stop block manually" bezelStyle="roundedRect" image="705415CF-9E7C-47F8-A34F-8EC414508F34" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="WWa-f1-gdW">
+ <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+ <font key="font" metaFont="smallSystem"/>
+ </buttonCell>
+ <connections>
+ <action selector="killBlock:" target="7" id="JqI-mO-szR"/>
+ </connections>
+ </button>
</subviews>
</view>
</window>
@@ -55,6 +66,7 @@
<outlet property="addSheet_" destination="63" id="85"/>
<outlet property="addToBlockButton_" destination="49" id="90"/>
<outlet property="addToBlockTextField_" destination="68" id="86"/>
+ <outlet property="killBlockButton_" destination="drr-6H-Ase" id="8Z0-b1-wr3"/>
<outlet property="timerLabel_" destination="33" id="91"/>
<outlet property="window" destination="31" id="89"/>
</connections>
@@ -117,7 +129,25 @@ DQ
<userDefaultsController representsSharedInstance="YES" id="77"/>
</objects>
<resources>
- <image name="3FC69F45-C71A-4702-A5D8-A44101BA9957" width="1" height="1">
+ <image name="705415CF-9E7C-47F8-A34F-8EC414508F34" width="1" height="1">
+ <mutableData key="keyedArchiveRepresentation">
+YnBs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utableData>
+ </image>
+ <image name="9833FB2C-EFEC-4A1A-B43C-2F4403A83699" width="1" height="1">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGPj9YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
GR4fIyQsLzI4O1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" promptedForUpgradeToXcode5="NO">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1070" identifier="macosx"/>
<development version="5100" identifier="xcode"/>
@@ -12,7 +12,7 @@
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
+ <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="SelfControl" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="31" userLabel="Panel (SelfControl)" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" utility="YES" HUD="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
@@ -34,7 +34,7 @@
<button verticalHuggingPriority="750" id="49">
<rect key="frame" x="46" y="10" width="119" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="D4675D41-24F9-43FA-9121-0850AF97813E" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
+ <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="723DB989-8970-4713-AB13-76AD3ED60C20" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
@@ -47,20 +47,15 @@
</binding>
</connections>
</button>
- <button verticalHuggingPriority="750" id="100">
+ <button hidden="YES" verticalHuggingPriority="750" id="100">
<rect key="frame" x="28" y="10" width="159" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="roundRect" title="Stuck? Stop block manually" bezelStyle="roundedRect" image="21DA903D-A965-4DF0-A04D-67D0C32660DD" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="101">
+ <buttonCell key="cell" type="roundRect" title="Stuck? Stop block manually" bezelStyle="roundedRect" image="FA3177CA-5427-4E53-B8C1-1E4403E137CA" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="101">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="killBlock:" target="7" id="104"/>
- <binding destination="77" name="enabled" keyPath="values.BlockAsWhitelist" id="102">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
</connections>
</button>
</subviews>
@@ -134,7 +129,7 @@ DQ
<userDefaultsController representsSharedInstance="YES" id="77"/>
</objects>
<resources>
- <image name="21DA903D-A965-4DF0-A04D-67D0C32660DD" width="1" height="1">
+ <image name="723DB989-8970-4713-AB13-76AD3ED60C20" width="1" height="1">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGPj9YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
GR4fIyQsLzI4O1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
@@ -152,7 +147,7 @@ AhACGAIlAioCLAIuAjMCOwI+AkMCSwJOAmACYwJoAAAAAAAAAgEAAAAAAAAAQgAAAAAAAAAAAAAAAAAA
Amo
</mutableData>
</image>
- <image name="D4675D41-24F9-43FA-9121-0850AF97813E" width="1" height="1">
+ <image name="FA3177CA-5427-4E53-B8C1-1E4403E137CA" width="1" height="1">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGPj9YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
GR4fIyQsLzI4O1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" promptedForUpgradeToXcode5="NO">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1070" identifier="macosx"/>
<development version="5100" identifier="xcode"/>
@@ -12,7 +12,7 @@
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
+ <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="SelfControl" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="31" userLabel="Panel (SelfControl)" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" utility="YES" HUD="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
@@ -34,7 +34,7 @@
<button verticalHuggingPriority="750" id="49">
<rect key="frame" x="46" y="10" width="119" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="CDBFDE2F-4E07-4418-86C7-0D8DF3AE39B5" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
+ <buttonCell key="cell" type="roundRect" title="Add to Blacklist" bezelStyle="roundedRect" image="9752E89B-77F1-4A06-8BCA-5B5B3F92C34D" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="50">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
@@ -47,6 +47,17 @@
</binding>
</connections>
</button>
+ <button hidden="YES" verticalHuggingPriority="750" id="rYN-yi-jaf">
+ <rect key="frame" x="27" y="10" width="159" height="17"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <buttonCell key="cell" type="roundRect" title="Stuck? Stop block manually" bezelStyle="roundedRect" image="FC86290B-80C3-4552-8FC3-60F1852082E5" imagePosition="overlaps" alignment="center" controlSize="small" state="on" borderStyle="border" inset="2" id="IK5-Vv-MjW">
+ <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+ <font key="font" metaFont="smallSystem"/>
+ </buttonCell>
+ <connections>
+ <action selector="killBlock:" target="7" id="d1Y-vH-3aH"/>
+ </connections>
+ </button>
</subviews>
</view>
</window>
@@ -55,6 +66,7 @@
<outlet property="addSheet_" destination="63" id="85"/>
<outlet property="addToBlockButton_" destination="49" id="90"/>
<outlet property="addToBlockTextField_" destination="68" id="86"/>
+ <outlet property="killBlockButton_" destination="rYN-yi-jaf" id="eT2-jx-TPR"/>
<outlet property="timerLabel_" destination="33" id="91"/>
<outlet property="window" destination="31" id="89"/>
</connections>
@@ -117,7 +129,25 @@ DQ
<userDefaultsController representsSharedInstance="YES" id="77"/>
</objects>
<resources>
- <image name="CDBFDE2F-4E07-4418-86C7-0D8DF3AE39B5" width="1" height="1">
+ <image name="9752E89B-77F1-4A06-8BCA-5B5B3F92C34D" width="1" height="1">
+ <mutableData key="keyedArchiveRepresentation">
+YnBsaXN0MDDUAQIDBAUGPj9YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
+GR4fIyQsLzI4O1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
+c1dOU0NvbG9ygAKADRIgwwAAgAOAC1Z7MSwgMX3SFQoWGFpOUy5vYmplY3RzoReABIAK0hUKGh2iGxyA
+BYAGgAkQANIgCiEiXxAUTlNUSUZGUmVwcmVzZW50YXRpb26AB4AITxCsTU0AKgAAAAoAAAANAQAAAwAA
+AAEAAQAAAQEAAwAAAAEAAQAAAQIAAwAAAAIACAAIAQMAAwAAAAEAAQAAAQYAAwAAAAEAAQAAAREABAAA
+AAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAAwAAAAEAAQAAARcABAAAAAEAAAACARwAAwAA
+AAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAANIlJicoWiRjbGFzc25hbWVYJGNsYXNzZXNf
+EBBOU0JpdG1hcEltYWdlUmVwoykqK18QEE5TQml0bWFwSW1hZ2VSZXBaTlNJbWFnZVJlcFhOU09iamVj
+dNIlJi0uV05TQXJyYXmiLSvSJSYwMV5OU011dGFibGVBcnJheaMwLSvTMzQKNTY3V05TV2hpdGVcTlND
+b2xvclNwYWNlRDAgMAAQA4AM0iUmOTpXTlNDb2xvcqI5K9IlJjw9V05TSW1hZ2WiPCtfEA9OU0tleWVk
+QXJjaGl2ZXLRQEFUcm9vdIABAAgAEQAaACMALQAyADcARgBMAFcAXgBlAHIAeQCBAIMAhQCKAIwAjgCV
+AJoApQCnAKkAqwCwALMAtQC3ALkAuwDAANcA2QDbAYoBjwGaAaMBtgG6Ac0B2AHhAeYB7gHxAfYCBQIJ
+AhACGAIlAioCLAIuAjMCOwI+AkMCSwJOAmACYwJoAAAAAAAAAgEAAAAAAAAAQgAAAAAAAAAAAAAAAAAA
+Amo
+</mutableData>
+ </image>
+ <image name="FC86290B-80C3-4552-8FC3-60F1852082E5" width="1" height="1">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGPj9YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK4HCBMU
GR4fIyQsLzI4O1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVw
Oops, something went wrong.

0 comments on commit 12be12a

Please sign in to comment.