Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
* Fixed issue #2
* Hide unsupported features
* Added German language again
  • Loading branch information
Eun authored and Tobias Salzmann committed Aug 15, 2014
1 parent ad051f3 commit 1248439
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 45 deletions.
2 changes: 2 additions & 0 deletions DisableMonitor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
59DCF63119827F4C00FA3A21 /* CustomResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomResolution.h; sourceTree = "<group>"; };
59DCF63219827F4C00FA3A21 /* CustomResolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomResolution.m; sourceTree = "<group>"; };
59E41D2A1977C71F00FD45A6 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = System/Library/Frameworks/CoreServices.framework; sourceTree = SDKROOT; };
59F8F440199DDC14000D066B /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* DisableMonitor-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "DisableMonitor-Info.plist"; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* DisableMonitor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DisableMonitor.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -251,6 +252,7 @@
isa = PBXVariantGroup;
children = (
089C165DFE840E0CC02AAC07 /* English */,
59F8F440199DDC14000D066B /* de */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "747"
endingLineNumber = "747"
startingLineNumber = "749"
endingLineNumber = "749"
landmarkName = "-menuNeedsUpdate:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -74,11 +74,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "771"
endingLineNumber = "771"
startingLineNumber = "773"
endingLineNumber = "773"
landmarkName = "-releaseMenu:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -90,11 +90,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "768"
endingLineNumber = "768"
startingLineNumber = "770"
endingLineNumber = "770"
landmarkName = "-releaseMenu:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -106,11 +106,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "654"
endingLineNumber = "654"
startingLineNumber = "656"
endingLineNumber = "656"
landmarkName = "-menuNeedsUpdate:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -122,11 +122,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428396927.7985"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "415"
endingLineNumber = "415"
startingLineNumber = "417"
endingLineNumber = "417"
landmarkName = "-windowWillClose:"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -298,11 +298,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "667"
endingLineNumber = "667"
startingLineNumber = "669"
endingLineNumber = "669"
landmarkName = "-menuNeedsUpdate:"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -474,11 +474,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428396927.7985"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "459"
endingLineNumber = "459"
startingLineNumber = "461"
endingLineNumber = "461"
landmarkName = "-AddCustomResoultion:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -490,11 +490,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428396927.7985"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "464"
endingLineNumber = "464"
startingLineNumber = "466"
endingLineNumber = "466"
landmarkName = "-AddCustomResoultion:"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -650,19 +650,19 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
timestampString = "428397572.193388"
timestampString = "429776034.257365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "555"
endingLineNumber = "555"
startingLineNumber = "557"
endingLineNumber = "557"
landmarkName = "-outlineView:shouldSelectItem:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DisableMonitorAppDelegate.m"
Expand Down
10 changes: 9 additions & 1 deletion DisableMonitorAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ -(void)ToggleMonitor:(CGDirectDisplayID) display enabled:(Boolean) enabled
continue;
if (!CGDisplayIsActive(displays[i]))
continue;
[self MoveAllWindows:display to:displays[i]];
@try {
[self MoveAllWindows:display to:displays[i]];
}
@catch (NSException *e)
{
NSLog(@"Problems in moving windows");
}
break;
}
}
Expand Down Expand Up @@ -401,10 +407,12 @@ -(void)ManageResolution:(id) sender
[window setTitle:displayName];
[window setDelegate:self];
[window makeKeyAndOrderFront:self];
[window setLevel:NSFloatingWindowLevel];
[window_list setDataSource:[[ResolutionDataSource alloc] initWithDisplay:display]];
[window_list setDelegate:self];
[window_label setStringValue:NSLocalizedString(@"CUSTOM_LABEL", NULL)];
[window_btnclose setTitle:NSLocalizedString(@"ALERT_CANCEL", NULL)];
[window_btnclose sizeToFit];
[window makeFirstResponder: nil];
[monitors release];
}
Expand Down
Loading

0 comments on commit 1248439

Please sign in to comment.