1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Fix for some Apple AU guis.

This commit is contained in:
jules 2012-10-11 17:15:07 +01:00
parent c50a70669a
commit ede73fcfd7
4 changed files with 15 additions and 15 deletions

View file

@ -1100,7 +1100,8 @@ public:
{
const bool wasValid = isValid();
wrapper.setVisible (false);
// NB: making the wrapper invisible before removing it causes
// strange internal crashes in some Apple AUs.
removeChildComponent (&wrapper);
wrapper.setView (nil);

View file

@ -107,11 +107,10 @@ void DocumentWindow::setTitleBarHeight (const int newHeight)
repaintTitleBar();
}
void DocumentWindow::setTitleBarButtonsRequired (const int requiredButtons_,
const bool positionTitleBarButtonsOnLeft_)
void DocumentWindow::setTitleBarButtonsRequired (const int buttons, const bool onLeft)
{
requiredButtons = requiredButtons_;
positionTitleBarButtonsOnLeft = positionTitleBarButtonsOnLeft_;
requiredButtons = buttons;
positionTitleBarButtonsOnLeft = onLeft;
lookAndFeelChanged();
}

View file

@ -205,13 +205,13 @@ public:
virtual void maximiseButtonPressed();
//==============================================================================
/** Returns the close button, (or 0 if there isn't one). */
/** Returns the close button, (or nullptr if there isn't one). */
Button* getCloseButton() const noexcept;
/** Returns the minimise button, (or 0 if there isn't one). */
/** Returns the minimise button, (or nullptr if there isn't one). */
Button* getMinimiseButton() const noexcept;
/** Returns the maximise button, (or 0 if there isn't one). */
/** Returns the maximise button, (or nullptr if there isn't one). */
Button* getMaximiseButton() const noexcept;
//==============================================================================
@ -231,7 +231,7 @@ public:
//==============================================================================
#ifndef DOXYGEN
/** @internal */
void paint (Graphics& g);
void paint (Graphics&);
/** @internal */
void resized();
/** @internal */
@ -241,7 +241,7 @@ public:
/** @internal */
BorderSize<int> getContentComponentBorder();
/** @internal */
void mouseDoubleClick (const MouseEvent& e);
void mouseDoubleClick (const MouseEvent&);
/** @internal */
void userTriedToCloseWindow();
/** @internal */

View file

@ -27,13 +27,13 @@ class NSViewAttachment : public ReferenceCountedObject,
public ComponentMovementWatcher
{
public:
NSViewAttachment (NSView* const view_, Component& owner_)
: ComponentMovementWatcher (&owner_),
view (view_),
owner (owner_),
NSViewAttachment (NSView* const v, Component& comp)
: ComponentMovementWatcher (&comp),
view (v),
owner (comp),
currentPeer (nullptr)
{
[view_ retain];
[view retain];
if (owner.isShowing())
componentPeerChanged();