• 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: Advanced / Expert params
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advanced / Expert params


  • Subject: Re: Advanced / Expert params
  • From: Airy André <email@hidden>
  • Date: Wed, 18 Jun 2003 19:50:06 +0200

Le mercredi, 18 juin 2003, ` 07:46 Europe/Paris, Marc Poirier a icrit :

ComponentDescription desc;
OSErr error = GetComponentInfo((Component)GetComponentInstance(), &desc, NULL, NULL, NULL);
if (error == noErr)
{
if (desc.componentSubType == 'blah')
InitBoringStyle();
else if (desc.componentSubType == 'WOW!')
InitExcitingStyle();
}

So of course this isn't useful for UI stuff until hosts start providing a
way to choose between multiple UI components, but anyway, for anyone how
might care and didn't already figure this out. And actually, if you have
a set of AUs that use similar GUIs, you could use this tactic too if they
might be able to share most of the same code...

Marc

Nice tip !
For people using our GUI SDK, just put that in the GetWindowNibName() method...

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

  • Prev by Date: Re: Where is the coreMIDI error list?
  • Next by Date: Newbie - USB Audio Driver Questions
  • Previous by thread: Re: Advanced / Expert params
  • Next by thread: Re: Stream enables [was: fIsMixable]
  • Index(es):
    • Date
    • Thread