• 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: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]


  • Subject: Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
  • From: Paul Davis <email@hidden>
  • Date: Mon, 10 May 2010 08:47:09 -0400



On Mon, May 10, 2010 at 8:36 AM, Ross Bencina <email@hidden> wrote:
Hi

I'm trying to work out how to host Carbon AUs inside a Cocoa version of my app (I'm using Qt, so my app can be Carbon or Cocoa based, but people are saying I should move to Cocoa...). I'm at a dead end so any leads or suggestions woudl be most appreciated..

this is all covered in apple's technote on the subject. it sounds as if you've read it, but then you say:
 

I want the AU GUIs (and VST too, by the way) to be sub-panes of my main app window, not in their own top-level windows. If the AU GUI is an NSView all is well, I can embed it inside other parent NSViews. But, if it's a Carbon AU (HIView), then I don't know how to deal with it. I can't find any information about how to embed an HIView inside a tree of parent NSViews. The only information I can find on the Apple website talks about embedding an HIView in a top level NSWindow (not inside a sub-NSView). Is that the only possibility? It seems a little strange since it's possible to go the other way (embed an NSView in a HIView using HICocoaView).

the technote doesn't describe this at all. You *float* the HIView *above* the parent NSWindow/NSView.

Within the last 7-10 days, somebody mentioned a URL that fully describes how to do this with actual code (though it doesn't cover window activation issues, IIRC). If you can read GPL code without misusing the license (I know you can Ross), then you might also find a few useful hints in here:

     http://subversion.ardour.org/svn/ardour2/branches/2.0-ongoing/gtk2_ardour/au_pluginui.mm

although this has the complication that Ardour is written using GTK (which in turn sits above Cocoa). The hard-core parts of Carbon view handling, though, are all reasonably clearly done using Carbon & Cocoa calls.

--p

 _______________________________________________
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

References: 
 >embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: "Ross Bencina" <email@hidden>)

  • Prev by Date: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
  • Next by Date: MP3 hardware-assisted decoding on ipad
  • Previous by thread: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
  • Next by thread: Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
  • Index(es):
    • Date
    • Thread