Revision: 7717
http://skim-app.svn.sourceforge.net/skim-app/?rev=7717&view=rev
Author: hofman
Date: 2012-09-02 21:06:47 +0000 (Sun, 02 Sep 2012)
Log Message:
-----------
use 10.6 presentation options
Modified Paths:
--------------
trunk/SKApplication.m
Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m 2012-09-01 09:52:52 UTC (rev 7716)
+++ trunk/SKApplication.m 2012-09-02 21:06:47 UTC (rev 7717)
@@ -83,14 +83,10 @@
}
- (void)updatePresentationOptionsForWindow:(NSWindow *)aWindow {
- const static SystemUIMode modes[3] = {kUIModeNormal, kUIModeAllHidden,
kUIModeAllHidden};
- const static SystemUIOptions options[3] = {0, kUIOptionAutoShowMenuBar,
kUIOptionDisableProcessSwitch};
- SystemUIMode currentMode;
- SystemUIOptions currentOptions;
- GetSystemUIMode(¤tMode, ¤tOptions);
+ const NSApplicationPresentationOptions options[3] =
{NSApplicationPresentationDefault, NSApplicationPresentationHideDock |
NSApplicationPresentationAutoHideMenuBar, NSApplicationPresentationHideDock |
NSApplicationPresentationHideMenuBar |
NSApplicationPresentationDisableProcessSwitching};
SKInteractionMode mode = [[[aWindow windowController] document]
systemInteractionMode];
- if (currentMode != modes[mode] || currentOptions != options[mode])
- SetSystemUIMode(modes[mode], options[mode]);
+ if ([self presentationOptions] != options[mode])
+ [self setPresentationOptions:options[mode]];
}
- (void)reorganizeWindowsItem:(NSWindow *)aWindow {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit