Re: ClassInfo & PresentPreset confusion
Re: ClassInfo & PresentPreset confusion
- Subject: Re: ClassInfo & PresentPreset confusion
- From: Michael Kleps <email@hidden>
- Date: Mon, 10 Oct 2005 16:43:36 +0200
The very first thing I do is call the default implementation
(AUBase::RestoreState and AUBase::SaveState). BTW, none of these
methods (Restore or SaveState) are even called by the AU Validation
tool...
Marc, I am afraid that you are more guessing then knowing, but your
quick reaction and your right use of the terminology gives most
developer here the impression that your answers are right and that
looking into this isn't necessary.
If neither property is set/get, no savestate/restorestate is called,
how can the AU Validation tool possibly check for any changed names?
Regards,
Mike
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