mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Detecting minimisation state changes in OSX.
This commit is contained in:
parent
e73b49e220
commit
448f0c85bc
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue