Browse Source

Detecting minimisation state changes in OSX.

tags/2021-05-28
jules 13 years ago
parent
commit
448f0c85bc
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 12
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -81,11 +81,23 @@ public:
object: view];
if (! isSharedWindow)
{
[notificationCenter addObserver: view
selector: @selector (frameChanged:)
name: NSWindowDidMoveNotification
object: window];
[notificationCenter addObserver: view
selector: @selector (frameChanged:)
name: NSWindowDidMiniaturizeNotification
object: window];
[notificationCenter addObserver: view
selector: @selector (frameChanged:)
name: NSWindowDidDeminiaturizeNotification
object: window];
}
[view setPostsFrameChangedNotifications: YES];
if (isSharedWindow)


Loading…
Cancel
Save