Cocoa UI Size
Cocoa UI Size
- Subject: Cocoa UI Size
- From: Urs Heckmann <email@hidden>
- Date: Sun, 6 Jun 2010 11:51:23 +0200
Hi,
What steps are necessary to do to tell the host of the initial size of a CocoaUI? - Using Nibs is not an option as the gui size may vary due to various circumstances that can't be predicted at shipping time.
The following (simplified) code creates an NSView of 480 x 480 pixels, yet AULab opens a way too small window. When I close the window and reopen it, the window size is correct.
- (NSView *)uiViewForAudioUnit:(AudioUnit)inAU withSize:(NSSize)inPreferredSize
{
// inPreferredSize is 0.0f/0.0f, that doesn't help at all
NSView *returnView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 480, 480)];
return [returnView autorelease];
}
Is there any further documentation on Cocoa UIs for AU that create views programatically? All I ever read is "This particular nib has a fixed size", and I've been wasting days already to figure it out. Or is it a bug in AULab even?
Thanks,
;) Urs
urs heckmann
email@hidden
www.u-he.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden