Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
* Refactors
  • Loading branch information
Michael Clifford committed Jun 17, 2014
1 parent c4ffba0 commit 917d8bb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions audioreset/Base.lproj/MainMenu.xib
Expand Up @@ -83,9 +83,9 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="G1M-1A-eLj">
<rect key="frame" x="430" y="14" width="32" height="17"/>
<rect key="frame" x="423" y="14" width="44" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="v1.0" id="jcN-Zg-mhv">
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="v1.0.1" id="jcN-Zg-mhv">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
Expand Down
10 changes: 6 additions & 4 deletions audioreset/SPAppDelegate.h
Expand Up @@ -21,10 +21,12 @@
- (IBAction)openPreferencesWindow:(id)sender;
- (IBAction)resetAppleHDAAction:(id)sender;
- (void)resetAppleHDAInBackground;
- (BOOL)runProcessAsAdministrator:(NSString*)scriptPath
- (BOOL)runProcessAsAdministrator:(NSString *)scriptPath
userPassword:(NSString *)userPassword
withArguments:(NSArray *)arguments
output:(NSString **)output
errorDescription:(NSString **)errorDescription;
withArguments:(NSArray *)arguments
output:(NSString **)output
errorDescription:(NSString **)errorDescription;
- (void)openWindow:(NSWindow *)window
sender:(id)sender;

@end
11 changes: 7 additions & 4 deletions audioreset/SPAppDelegate.m
Expand Up @@ -25,14 +25,17 @@ - (void)receiveWakeNote: (NSNotification*) note
}

- (IBAction)openAboutWindow:(id)sender {
[NSApp activateIgnoringOtherApps:YES];
[_aboutWindow makeKeyAndOrderFront:sender];
[self openWindow:_aboutWindow sender:sender];
}

- (IBAction)openPreferencesWindow:(id)sender {
[NSApp activateIgnoringOtherApps:YES];
[_preferencesWindow makeKeyAndOrderFront:sender];
[self openWindow:_preferencesWindow sender:sender];
}

- (void)openWindow:(NSWindow *)window
sender: (id)sender {
[NSApp activateIgnoringOtherApps:YES];
[window makeKeyAndOrderFront:sender];
}

- (IBAction)resetAppleHDAAction:(id)sender {
Expand Down
6 changes: 3 additions & 3 deletions audioreset/audioreset-Info.plist
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSUIElement</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -19,13 +17,15 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Suite Potato. All rights reserved.</string>
<key>NSMainNibFile</key>
Expand Down

0 comments on commit 917d8bb

Please sign in to comment.