Permalink
Browse files

Version 1.1: 10.4 compatibility, lots of bug fixes

  • Loading branch information...
1 parent 37e27fb commit a7707c54d74da0adb930af9bac9eff63ab6297af Charlie Stigler committed Apr 1, 2009
View
6 AppController.h 100644 → 100755
@@ -94,5 +94,9 @@
- (IBAction)soundSelectionChanged:(id)sender;
// Property allows initialWindow to be accessed from TimerWindowController
-@property (retain, nonatomic, readonly) id initialWindow;
+// @property (retain, nonatomic, readonly) id initialWindow;
+
+// Changed property to manual accessor for pre-Leopard compatibility
+- (id)initialWindow;
+
@end
View
30 AppController.m 100644 → 100755
@@ -331,7 +331,29 @@ - (BOOL)networkConnectionIsAvailable {
}
- (IBAction)soundSelectionChanged:(id)sender {
- NSLog(@"something happened");
+ // Map the tags used in interface builder to the sound
+ NSArray* systemSoundNames = [NSArray arrayWithObjects:
+ @"Basso",
+ @"Blow",
+ @"Bottle",
+ @"Frog",
+ @"Funk",
+ @"Glass",
+ @"Hero",
+ @"Morse",
+ @"Ping",
+ @"Pop",
+ @"Purr",
+ @"Sosumi",
+ @"Submarine",
+ @"Tink",
+ nil
+ ];
+ NSSound* alertSound = [NSSound soundNamed: [systemSoundNames objectAtIndex: [defaults_ integerForKey: @"BlockSound"]]];
+ if(!alertSound)
+ NSLog(@"WARNING: Alert sound not found.");
+ else
+ [alertSound play];
}
- (void)dealloc {
@@ -348,5 +370,9 @@ - (void)dealloc {
[super dealloc];
}
-@synthesize initialWindow = initialWindow_;
+// @synthesize initialWindow = initialWindow_;
+- (id)initialWindow {
+ return initialWindow_;
+}
+
@end
View
0 ButtonWithPopupMenu.h 100644 → 100755
No changes.
View
0 ButtonWithPopupMenu.m 100644 → 100755
No changes.
View
0 COPYING 100644 → 100755
No changes.
View
0 Credits.rtf 100644 → 100755
No changes.
View
0 DomainListWindowController.h 100644 → 100755
No changes.
View
0 DomainListWindowController.m 100644 → 100755
No changes.
View
0 English.lproj/Credits.rtf 100644 → 100755
No changes.
View
21 English.lproj/DomainList.xib 100644 → 100755
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
- <int key="IBDocument.SystemTarget">1050</int>
+ <int key="IBDocument.SystemTarget">1040</int>
<string key="IBDocument.SystemVersion">9G55</string>
<string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.43</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="1"/>
+ <integer value="2"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -740,8 +740,8 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{655, 151}, {575, 335}}</string>
- <string>{{655, 151}, {575, 335}}</string>
+ <string>{{225, 172}, {575, 335}}</string>
+ <string>{{225, 172}, {575, 335}}</string>
<boolean value="YES" id="5"/>
<string>{196, 240}</string>
<string>{{357, 418}, {480, 270}}</string>
@@ -849,17 +849,8 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSMutableArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>domainListTableView_</string>
- <string>initialWindowSubmitButton_</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>id</string>
- <string>id</string>
- </object>
+ <string key="NS.key.0">domainListTableView_</string>
+ <string key="NS.object.0">id</string>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
View
No changes.
View
15 English.lproj/MainMenu.xib 100644 → 100755
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
- <int key="IBDocument.SystemTarget">1050</int>
+ <int key="IBDocument.SystemTarget">1040</int>
<string key="IBDocument.SystemVersion">9G55</string>
<string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.43</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="634"/>
<integer value="29"/>
+ <integer value="634"/>
<integer value="372"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
@@ -1048,6 +1048,14 @@
</object>
<int key="connectionID">726</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">soundSelectionChanged:</string>
+ <reference key="source" ref="542474807"/>
+ <reference key="destination" ref="132293881"/>
+ </object>
+ <int key="connectionID">730</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -1830,7 +1838,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">729</int>
+ <int key="maxID">730</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -1881,6 +1889,7 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">NSPopUpButton</string>
+ <string key="superclassName">NSButton</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">myAction1:</string>
<string key="NS.object.0">id</string>
View
6 HelperMain.h 100644 → 100755
@@ -43,4 +43,8 @@ int main(int argc, char* argv[]);
void addRulesToFirewall();
// Removes from ipfw all rules that were created by SelfControl.
-void removeRulesFromFirewall();
+void removeRulesFromFirewall();
+
+// Returns an autoreleased NSSet containing all IP adresses for evaluated
+// "common subdomains" for the specified hostname
+NSSet* getEvaluatedHostNamesFromCommonSubdomains(NSString* hostName, NSString* port);
Oops, something went wrong.

0 comments on commit a7707c5

Please sign in to comment.