• 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: "Ross Bencina" <email@hidden>
  • Date: Wed, 12 May 2010 23:41:23 +1000

Kyle Sluder wrote:
Since I assume you already have all the logic necessary to move your
widgets around to deal with non-rectangularity already

Well, this is all handled by NSView or HIView compositing. So to say I have all the logic is not quite correct. Infact since this is implemented using Qt, all I'm doing is setting non-rectanguilar bitmap masks for the widgets and leaving the masking itself to Qt/Cocoa or Qt/Carbon.


it's just a
matter of hosting the views in the correct container (your normal view
hierarchy or the floating Carbon-hosting window).

Are you suggesting that I have a single Carbon-hosting window for all plugins? I guess that would make it easier as I'd only need a single non-rectangular mask for the whole carbon window.


The two windows can
coordinate amongst themselves to make sure the NSView-derived controls
stay out of the way of your HIView controls, even though the two
technically don't exist inside the same view hierarchy. Your users
can't tell the difference.

Yeah, sounds like a good way to do it. In VST-land I've already seen some plugins create overlay windows over the top of the window they're given (I think pluggo does that for example). I guess that's not going to play nicely with this trick... (or any other).


Ross.

_______________________________________________
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


  • Follow-Ups:
    • Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
      • From: Paul Davis <email@hidden>
References: 
 >embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: "Ross Bencina" <email@hidden>)
 >Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: Kyle Sluder <email@hidden>)
 >Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: "Ross Bencina" <email@hidden>)
 >Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: Kyle Sluder <email@hidden>)
 >Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: "Ross Bencina" <email@hidden>)
 >Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT] (From: Kyle Sluder <email@hidden>)

  • Prev by Date: CoreAudio Wifi MIDI Server maybe
  • Next by Date: Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
  • Previous by thread: Re: 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