user519179
user519179

Reputation:

NSWindow - how to know if a window is hidden vs. minimized?

A NSWindow can be hidden via orderOut: or minimized.

How can I distinguish between the two? isVisible returns 0 in both cases.

Upvotes: 3

Views: 1699

Answers (1)

Josh Freeman
Josh Freeman

Reputation: 2282

If -isMiniaturized isn't working for you, you can manually keep track of the window's miniaturization status by setting up your own status flag that you update when the window is minimized/de-minimized, using either of the following methods:

Upvotes: 4

Related Questions