Start on app menus

This commit is contained in:
Nathan Sobo 2023-12-05 13:17:59 -07:00
parent dffe0ea058
commit 631e264e3c
8 changed files with 272 additions and 116 deletions

View file

@ -662,7 +662,7 @@ impl MacWindow {
}
}
pub fn main_window() -> Option<AnyWindowHandle> {
pub fn active_window() -> Option<AnyWindowHandle> {
unsafe {
let app = NSApplication::sharedApplication(nil);
let main_window: id = msg_send![app, mainWindow];