任务单 #37378

macOS版 Viewメニューから"Enter Full Screen"を削除

开放日期: 2017-07-17 23:09 最后更新: 2017-07-17 23:22

报告人:
属主:
类型:
状态:
关闭
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:

Details

OS X 10.11(El Capitan)から、MIDITrailのViewメニューに"Enter Full Screen"が表示されるようになった。 このメニューを選択しても何も起こらないが、不要なので非表示にする。

任务单历史 (3/4 Histories)

2017-07-17 23:09 Updated by: yknk
  • New Ticket "macOS版 Viewメニューから"Enter Full Screen"を削除" created
2017-07-17 23:22 Updated by: yknk
评论

原因

OSの仕様変更によるもの。下記ページ参照。

Developer Release Notes
Cocoa Application Framework (macOS 10.12.2 and Earlier)
https://developer.apple.com/library/content/releasenotes/AppKit/RN-AppKitOlderNotes/
----
Full Screen Menu Item
AppKit automatically creates an "Enter Full Screen" menu item after 
the application finishes launching if an equivalent menu item isn't found. 
If this menu item should not be created for your app, 
before NSApplicationDidFinishLaunchingNotification is sent you may set 
the NSFullScreenMenuItemEverywhere default to NO.

- (void)applicationWillFinishLaunching:(nonnull NSNotification *)notification {
    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
}
----

2017-07-17 23:22 Updated by: yknk
评论

対策

MIDITrailAppDelegate

アプリケーション起動処理開始メソッド applicationWillFinishLaunching:aNotification に以下の処理を追加。

[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];

2017-07-17 23:22 Updated by: yknk
  • 处理结果 Update from to Fixed
  • 状态 Update from 开启 to 关闭
  • Ticket Close date is changed to 2017-07-17 23:22

Attachment File List

No attachments

编辑

Please login to add comment to this ticket » 登录名