Open michelcrypt4d4mus opened 1 month ago
It might be helpful to compare you app to Expo's Orbit app (i.E: https://github.com/expo/orbit/blob/main/apps/menu-bar/macos/ExpoMenuBar-macOS/AppDelegate.m) to see what the differences may be. Like, if there's a phantom window it's reading as you theorized
Environment
Steps to reproduce the bug
I have my app embedded in an
NSPopover
instead of the usualNSWindow
and I'm getting zeroes when I try to get the dimensions of the window the app appears in. I suspect that's because the mainNSApplication
still has awindow
property that was initialized in the scaffolding even though I'm not using it?Expected Behavior
I should get the actual dimensions.
Actual Behavior
Here's what I get:
Reproducible Demo
Here's
AppDelegate.swift
(I converted the template forreact-native-macos
to Swift):And here's the
macos-bridging-header.h
:Additional context
No response