Re: CocoaUI guidelines
Re: CocoaUI guidelines
- Subject: Re: CocoaUI guidelines
- From: Luke Bellandi <email@hidden>
- Date: Thu, 10 Jun 2004 13:58:20 -0700
On Jun 10, 2004, at 12:19 PM, Mark's Studio wrote:
Im trying to built a AU with a Cocoa UI, and every time there is a new
host things are different?
"Each call to uiViewForAudioUnit:withSize: is expected to return a
unique view.That is to say that the class implementing the
AUCocoaUIBase protocol shouldfunction as a view factory. Each returned
view should have a retain count of 1, and be returned autoreleased. It
is the hosts responsibility to retain the view asnecessary. See the
SampleEffectUnits Cocoa UI in the SDK for an example. "
GarageBand 1.1 does not retain the view (Filed a bug).
Rax 1.0 does not release the view.
CocoaAUHost seems to handle it right.
Who is right?
The documentation is correct. It is the host's responsiblility to
retain the view (if it so chooses, and I think most would) before the
NSAutoreleasePool releases its objects. Like your email says,
CocoaAUHost handles this correctly in the v1.3.1 SDK.
For all developers: If you're working on a Cocoa AUView, or a host to
support them, please read 'WritingCocoaAUUIs.pdf' in the CoreAudio
documentation folder.
Luke
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
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.
_______________________________________________
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.