Re: AudioUnit editor window
Re: AudioUnit editor window
- Subject: Re: AudioUnit editor window
- From: Antoine Missout <email@hidden>
- Date: Thu, 30 Jun 2005 15:04:17 -0400
After some works, here's the solution (for the archives):
replace:
============
OSStatus res = CreateNewWindow(kFloatingWindowClass,
kWindowCloseBoxAttribute |
kWindowCollapseBoxAttribute | kWindowStandardHandlerAttribute |
kWindowCompositingAttribute |
kWindowSideTitlebarAttribute, &bounds, &_carbonWindow);
if(res != noErr)
return [self _error:@"Create new carbon window"
status:res];
// create the edit view
ControlRef rootControl;
res = GetRootControl(_carbonWindow, &rootControl);
if(!rootControl)
return [self _error:@"Get root control of carbon
window" status:res];
===========
by:
============
////////// comment kWindowCompositingAttribute
OSStatus res = CreateNewWindow(kFloatingWindowClass,
kWindowCloseBoxAttribute |
kWindowCollapseBoxAttribute | kWindowStandardHandlerAttribute
/* | kWindowCompositingAttribute */ |
kWindowSideTitlebarAttribute, &bounds, &_carbonWindow);
if(res != noErr)
return [self _error:@"Create new carbon window"
status:res];
// create the edit view
ControlRef rootControl;
res = GetRootControl(_carbonWindow, &rootControl);
////////// create a root control if none present
if (!rootControl)
res = CreateRootControl(_carbonWindow, &rootControl);
if(!rootControl)
return [self _error:@"Get root control of carbon
window" status:res];
===========
And it works like a charm.
Antoine
On 26-Jun-05, at 3:16 PM, Antoine Misout wrote:
I've been using this code to show the custom gui of an audiounit:
http://www.cocoadev.com/index.pl?AudioUnitEditorWindow
However, for some carbon audiounits, mouse/keyboard events are not
handled. Maybe someone can see at a glance what is wrong ? I never
touched carbon stuff...
Thank you,
Antoine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@sonicbirth.com
This email sent to email@hidden
_______________________________________________
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