• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CarbonWindow in CocoaApp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CarbonWindow in CocoaApp


  • Subject: Re: CarbonWindow in CocoaApp
  • From: Glenn Howes <email@hidden>
  • Date: Fri, 25 Oct 2002 05:59:48 -0500

I was just watching the WWDC 2002 session video yesterday on this very subject. The presenter basically said no, but that there would be a Cocoa solution soon.

It's 5 months later, is that soon enough?

--glenn

On Friday, October 25, 2002, at 05:21 AM, Craig Bakalian wrote:

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.
_______________________________________________
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.

References: 
 >CarbonWindow in CocoaApp (From: Craig Bakalian <email@hidden>)

  • Prev by Date: A mach-o question
  • Next by Date: Re: Subclassing in plugins
  • Previous by thread: CarbonWindow in CocoaApp
  • Next by thread: Re: Subclassing in plugins
  • Index(es):
    • Date
    • Thread