Enable "View log" button.

This commit is contained in:
Frank Denis
2012-09-25 23:10:16 +02:00
parent b8c538e4aa
commit 901537f8d5
3 changed files with 16 additions and 4 deletions
@@ -18,6 +18,8 @@
#define kDNSCRYPT_VAR_BASE_DIR @"/Library/Application Support/DNSCrypt"
#define kDNSCRYPT_CONTROL_DIR kDNSCRYPT_VAR_BASE_DIR @"/control"
#define kDNSCRYPT_QUERY_LOG_FILE "/var/log/dnscrypt-query.log"
#define kOPENDNS_URL @"http://www.opendns.com"
#define kBUNDLE_IDENTIFIER @"com.opendns.osx.DNSCrypt"
@@ -65,5 +67,6 @@ typedef enum {
- (IBAction)staticResolversTextFieldChanged:(NSTextField *)sender;
- (IBAction)parentalControlsButtonPressed:(NSButtonCell *)sender;
- (IBAction)queryLoggingButtonPressed:(NSButtonCell *)sender;
- (IBAction)viewLogButtonPushed:(NSButton *)sender;
@end
@@ -423,4 +423,8 @@ DNSConfigurationState currentState = kDNS_CONFIGURATION_UNKNOWN;
}
}
- (IBAction)viewLogButtonPushed:(NSButton *)sender {
[self fromCommand: @"/bin/ksh" withArguments: [NSArray arrayWithObjects: @"-c", @"open /Applications/Utilities/Console.app " kDNSCRYPT_QUERY_LOG_FILE " || open " kDNSCRYPT_QUERY_LOG_FILE, nil]];
}
@end
@@ -1368,11 +1368,11 @@ aW91cy5leGFtcGxlLm5ldA</string>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">queryLoggingButtonPressed:</string>
<string key="label">viewLogButtonPushed:</string>
<reference key="source" ref="294453543"/>
<reference key="destination" ref="164894774"/>
<reference key="destination" ref="985341605"/>
</object>
<int key="connectionID">439</int>
<int key="connectionID">441</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -2093,7 +2093,7 @@ aW91cy5leGFtcGxlLm5ldA</string>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">439</int>
<int key="maxID">441</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -2110,6 +2110,7 @@ aW91cy5leGFtcGxlLm5ldA</string>
<string key="queryLoggingButtonPressed:">NSButtonCell</string>
<string key="staticResolversTextFieldChanged:">NSTextField</string>
<string key="uninstallPushed:">NSButton</string>
<string key="viewLogButtonPushed:">NSButton</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="actionInfosByName">
<object class="IBActionInfo" key="dnscryptButtonPressed:">
@@ -2148,6 +2149,10 @@ aW91cy5leGFtcGxlLm5ldA</string>
<string key="name">uninstallPushed:</string>
<string key="candidateClassName">NSButton</string>
</object>
<object class="IBActionInfo" key="viewLogButtonPushed:">
<string key="name">viewLogButtonPushed:</string>
<string key="candidateClassName">NSButton</string>
</object>
</dictionary>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="aboutTabViewItem">NSTabViewItem</string>