I am trying to add the ability to resize my os x application, as well as remove the full-screen button. Every since I added the setFullScreen() and setResizable() calls in my MainWindow constructor, the application triggers a jassert() in juce_ResizableWindow.cpp
class MainWindow : public DocumentWindow
{
public:
MainWindow (String name) : DocumentWindow (name,
Colours::lightgrey,
DocumentWindow::allButtons)
{
setUsingNativeTitleBar (true);
MainContentComponent* mcc = new MainContentComponent();
centreWithSize (getWidth(), getHeight());
setContentOwned (mcc, true);
this->setFullScreen(false);
this->setResizable(true, true);
int maxHeight = Desktop::getInstance().getDisplays().getMainDisplay().userArea.getHeight();
this->setResizeLimits(1024, 512,
1310,
maxHeight );
setVisible (true);
// mcc->setMainWindow(this);
}
What am I doing wrong? it seems the setContentOwned() is where everything goes downhill and causes the problems.
