Re: Carbon AudioUnitView in an NSWindow
Re: Carbon AudioUnitView in an NSWindow
- Subject: Re: Carbon AudioUnitView in an NSWindow
- From: Dominic Feira <email@hidden>
- Date: Fri, 10 Feb 2006 16:41:45 -0500
Okay. I'll just accept that using multiple windows is the best way
to handle this situation. The job of reconciling the Carbon and
Cocoa world's was not looking like a fun task. I just wanted to ask
to be sure. Thanks for the help. Now on to new questions.
Once I have the Carbon window pinned to the Cocoa window with
addChildChildWindow, the 2 windows still activate separately. How do
I get them to behave as one window for activation?
Are you using window groups in Garage Band? I tried to use a window
group already, but it doesn't appear to work. I add both windows to
the same group, but they do not drag or activate together. I don't
see a Cocoa way to accomplish this.
Also, how do you get the parent window to resize when the child
window does? I guess what I'm running into here is my unfamiliarity
with Carbon. I'll have to take this to that list soon.
Thanks again.
P.S. This is cross-posted t to the core-audio list for completeness,
even though it really isn't a CA issue anymore.
Dominic Feira / Code Monkey / Ambrosia Software
On Feb 10, 2006, at 6:18 AM, Stefan Gretscher wrote:
Hi Dominic,
we're hosting Carbon AU views in GarageBand pretty much like
described in the CoreAudio SDK:
/Developer/Examples/CoreAudio/Documentation/AudioUnits/
CarbonViewCocoaWindow.rtfd
This has been working pretty good for us, so what's the "obvious
drawbacks" you're seeing with this parent/child approach?
Best,
Stefan
Am 10.02.2006 um 02:13 schrieb Dominic Feira:
I need to display Carbon AudioUnitView's in a Cocoa app. So
far, I have been able to insert the Carbon view into the NSWindow,
but it is drawn behind all of the Cocoa views and doesn't receive
any events.
I guess it is a 2 part problem then.
1. Is it possible to get the Carbon view to draw in front of the
NSViews?
2. How do I get the Carbon view to respond to events?
If anybody has experience embedding Carbon controls inside of an
NSWindow I'd appreciate any suggestions or insight.
I have read the recommended approach in /Developer that says to
create a window and use parent/child windows to pin the Carbon
window containing the carbon AudioUnitView to the parent
NSWindow. This approach obviously has drawbacks. So, I'm
researching any other possible solutions to this problem.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden