• 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: Marc Poirier <email@hidden>
  • Date: Tue, 25 May 2004 22:44:57 -0400 (EDT)

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.


References: 
 >Component from ComponentInstance? (From: m <email@hidden>)

  • Prev by Date: Component from ComponentInstance?
  • Next by Date: Midnam and middev
  • Previous by thread: Component from ComponentInstance?
  • Next by thread: Re: Component from ComponentInstance?
  • Index(es):
    • Date
    • Thread