|
@@ -478,7 +478,7 @@ public: |
|
|
style |= NSResizableWindowMask; |
|
|
style |= NSResizableWindowMask; |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
NSRect frame = NSMakeRect(0, 0, 800, 600); |
|
|
|
|
|
|
|
|
NSRect frame = NSMakeRect(0, 0, 100, 100); |
|
|
|
|
|
|
|
|
fWindow = [[[CarlaPluginWindow alloc] |
|
|
fWindow = [[[CarlaPluginWindow alloc] |
|
|
initWithContentRect:frame |
|
|
initWithContentRect:frame |
|
@@ -495,8 +495,10 @@ public: |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//if (! isResizable) |
|
|
//if (! isResizable) |
|
|
[fView setAutoresizingMask:NSViewNotSizable]; |
|
|
|
|
|
[[fWindow standardWindowButton:NSWindowZoomButton] setHidden:YES]; |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
[fView setAutoresizingMask:NSViewNotSizable]; |
|
|
|
|
|
[[fWindow standardWindowButton:NSWindowZoomButton] setHidden:YES]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[fWindow setCallback:cb]; |
|
|
[fWindow setCallback:cb]; |
|
|
[fWindow setContentView:fView]; |
|
|
[fWindow setContentView:fView]; |
|
@@ -570,6 +572,12 @@ public: |
|
|
|
|
|
|
|
|
[fView setFrame:NSMakeRect(0, 0, width, height)]; |
|
|
[fView setFrame:NSMakeRect(0, 0, width, height)]; |
|
|
|
|
|
|
|
|
|
|
|
for (NSView* subview in [fView subviews]) |
|
|
|
|
|
{ |
|
|
|
|
|
[subview setFrame:NSMakeRect(0, 0, width, height)]; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const NSSize size = NSMakeSize(width, height); |
|
|
const NSSize size = NSMakeSize(width, height); |
|
|
[fWindow setContentSize:size]; |
|
|
[fWindow setContentSize:size]; |
|
|
|
|
|
|
|
|