Re: Advanced / Expert params
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.