cleanup after CreateUI
cleanup after CreateUI
- Subject: cleanup after CreateUI
- From: Marc Poirier <email@hidden>
- Date: Thu, 27 Mar 2003 20:18:43 +0100 (CET)
Hi. I have some questions about the creation and destruction of
AudioUnitCarbonViews.
The main thing that is concerning me is that there is the
kAudioUnitCarbonViewCreateSelect component selector which is set when the
host wants the AUCV to put together its view, but there is not, so far as
I can tell, a destructive complement to that selector. Is the basic idea
just that kAudioUnitCarbonViewCreateSelect will only ever be set (at most)
once for a given component instance? So then kComponentCloseSelect
essentially is what triggers the cleanup of whatever occurs in response to
kAudioUnitCarbonViewCreateSelect (as well as whatever occurs in response
to kComponentOpenSelect)?
To put this in AUCarbonViewBase SDK-speak, the idea is that my
AUCarbonViewBase child class will do any minimal creation stuff that is a
bare necessity for existance. Then in CreateUI, everything for the actual
view in the window is created. Then in my AUCV class' destructor, I clean
up everything that was created in the constructor and also, if CreateUI
ever occurred, everything that was created there, too? And I can be
confident that CreateUI will never be called more than once in the
lifetime of my class?
I'm just lookig for some reassurance that I'm doing things correctly and
not goofing anything up horrendously...
Thanks,
Marc
_______________________________________________
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.