When I tried reading the orderedIndex property of an NSWindow, either in my own code or in lldb, I got 9223372036854775807, which happens to be the largest signed 64-bit integer. I can live without it, but just wondering if anyone else noticed this.
orderedIndex property of NSWindow broken
Which version of Xcode / MacOS ? I tested with Xcode 13ß4 and MacOS 11.5. I get 1 as a result (called from viewWillAppear). Could you post the code so that we can try to replicate ?