Carbonを捨て去る時が来た!?
フルスクリーンでメニューとDockを隠して且つにゅるんとメニューバーを表示するにはCarbon.frameworkの関数
SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
を使います。見ての通りカーボンで関数です。
しかもDockはにゅるんと出てきません。
が、が、が!!
Snow Leopardだと
-[NSApplication setPresentationOptions:] #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 /* Flags that comprise an application's presentationOptions */ enum { NSApplicationPresentationDefault = 0, NSApplicationPresentationAutoHideDock = (1 << 0), // Dock appears when moused to NSApplicationPresentationHideDock = (1 << 1), // Dock is entirely unavailable NSApplicationPresentationAutoHideMenuBar = (1 << 2), // Menu Bar appears when moused to NSApplicationPresentationHideMenuBar = (1 << 3), // Menu Bar is entirely unavailable NSApplicationPresentationDisableAppleMenu = (1 << 4), // all Apple menu items are disabled NSApplicationPresentationDisableProcessSwitching = (1 << 5), // Cmd+Tab UI is disabled NSApplicationPresentationDisableForceQuit = (1 << 6), // Cmd+Opt+Esc panel is disabled NSApplicationPresentationDisableSessionTermination = (1 << 7), // PowerKey panel and Restart/Shut Down/Log Out disabled NSApplicationPresentationDisableHideApplication = (1 << 8), // Application "Hide" menu item is disabled NSApplicationPresentationDisableMenuBarTransparency = (1 << 9) // Menu Bar's transparent appearance is disabled }; #endif typedef NSUInteger NSApplicationPresentationOptions;
なんてのが使えます!!!
使えるんだって!
しかも
NSApplicationPresentationAutoHideDock = (1 << 0), // Dock appears when moused to
なんていう素敵機能まで!
で、なんでスノレパだけ!? まだ捨て去れないんじゃないの?