• 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: Component from ComponentInstance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component from ComponentInstance?


  • Subject: Re: Component from ComponentInstance?
  • From: Greg Chapman <email@hidden>
  • Date: Tue, 25 May 2004 21:48:24 -0700

It's true. You can pass a ComponentInstance to the ComponentManager routines that take a Component, and it will figure out what you meant. You can also make a component call passing in an unopened Component where you should pass in a ComponentInstance, and the calls the component will see are Open, <the call you made>, Close. Sometimes useful, sometimes not what you want at all.

Kind of bizarre, but there it is.

Greg Chapman
QuickTime Engineering
email@hidden

On May 25, 2004, at 7:44 PM, Marc Poirier wrote:

You're not missing anything obvious, but however you are not in the know.
;-) It's actually something that's pretty undocumented (I think it's only
mentioned in some old QuickTime tech note), but you can simply cast a
ComponentInstance to Component and that will just magically work. You can
use that for the various Component Manager API functions that take
Component arguments. You can actually also do the other way around,
resulting in the Componenent being Opened, then the call requiring the
ComponentInstance made, and then Closed automatically for you. Or so I
have been told by someone on the QuickTime API listserv, though I have not
actually tried that myself (I have tried casting ComponentInstance to
Component, though, and that has always worked for me).

Marc



On Tue, 25 May 2004, m wrote:

I must be missing something obvious.

Given a ComponentInstance, how does one recover the Component of which
it is an instance?

_murat
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Component from ComponentInstance?
      • From: m <email@hidden>
  • Prev by Date: Midnam and middev
  • Next by Date: Re: PowerPC optional instructions
  • Previous by thread: Re: Component from ComponentInstance?
  • Next by thread: Re: Component from ComponentInstance?
  • Index(es):
    • Date
    • Thread