Re: ClassInfo & PresentPreset confusion
Re: ClassInfo & PresentPreset confusion
- Subject: Re: ClassInfo & PresentPreset confusion
- From: Marc Poirier <email@hidden>
- Date: Mon, 10 Oct 2005 10:23:03 -0400
On Oct 10, 2005, at 10:08 AM, Michael Kleps wrote:
Hi all,
I still get the "WARNING: Preset name is not retained in retrieved
class data" although I don't even have ANY presets! My plugin has
no presets whatsoever, only a state which is retained perfectly via
my SaveState() and RestoreState() implementation.
Except that clearly it's not perfect. It's not retaining the preset
name part of the state data. I'm not sure how you're doing things,
but personally I think it's easiest to just let the default
implementations in AUBase handle things (they do it all correctly),
and then if you need to override those in order to add your own
stuff, begin by still letting those do their thing:
ComponentResult result = AUBase::RestoreState(plist);
if (result != noErr)
return result;
...etc...
Something like that.
No property "CurrentPreset" or "PresentPreset" is ever passed to my
"GetProperty" or "SetProperty" methods.
They are caught and handled by AUBase::DispatchGetProperty().
Marc
_______________________________________________
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