CarbonWindow in CocoaApp
CarbonWindow in CocoaApp
- Subject: CarbonWindow in CocoaApp
- From: Craig Bakalian <email@hidden>
- Date: Fri, 25 Oct 2002 06:21:58 -0400
Hi,
In the AudioUnits frameworks there is a AudioUnitCarbonView.h which
when passed an AudioUnit (reverb, delay, highpass...) along with other
stuff will create a window which shows the controls for that AudioUnit.
Here is the specs from the .h file:
* Parameters:
* inView:
* The view component instance.
* inAudioUnit:
* The AudioUnit component instance which the view is to control.
* inWindow:
* The Carbon window in which the user interface is to be opened.
* inParentControl:
* The Carbon control into which the user interface is to be
* embedded (often but not necessarily the window's root control).
* inLocation:
* The host application's requested location for the view. The
* view should always create itself at the specified location,
* inSize:
* The host application's requested size for the view. The view
* may choose a different size for itself, determined by the
* dimensions of outControl.
* outControl:
* The Carbon control which contains the entire user interface.
*
*/
EXTERN_API( ComponentResult )
AudioUnitCarbonViewCreate(
AudioUnitCarbonView inView,
AudioUnit inAudioUnit,
WindowRef inWindow,
ControlRef inParentControl,
const Float32Point * inLocation,
const Float32Point * inSize,
ControlRef * outControl)
Okay, I can follow the Integrating Carbon and Cocoa Document and pop
the window open from a user event in a Cocoa App, yet what if I want to
put the ControlRef* outControl (the last parameter) and put it into
a... lets say NSBox, is this possible?
I want to create a cocoa window in that can shuffle through the
AudioUnits I create, so one cocoa window would have access to all the
possible AudioUnitCarbonViewCreate() my app needs. Something similar
to the To Do Info window where a popup menu changes the contents of a
NSBox. Can I do this with a carbon object?
Craig Bakalian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.