So I seem to be getting this really weird issue when dismissing a sheet sometimes. I call
[self.window endSheet:sheetWindow];
It doesn't happen all the time, but when it happens, the sheet "disappears" without animation and I see this logs out in Console:
_CGXRemoveWindowFromWindowMovementGroup: window is not attached to window
I'm 100% certain that the window is a sheet on window at the time I call endSheet:
Also weird because clicking in self.window after dismissing the sheet does not work (that is, clicking on clickable views like buttons and such does nothing) until I bring another app to the foreground, and then click to bring my app frontmost again.
Anyone run into this and perhaps know what could be causing it?
Thanks