Re: nib files in Sample AU
Re: nib files in Sample AU
- Subject: Re: nib files in Sample AU
- From: Luke Bellandi <email@hidden>
- Date: Wed, 7 Jan 2004 10:23:04 -0800
I ' ve recently started to develeop my own audioUnits. I just finished
my first delay based on SampleEffectUnit. It works too. :)
when i was sorting my stuff i copied all the source files to a
different folder opened the project and tried to compile. the compiler
complained that it was missing a sth: English.lproj
So i added it from my backup and my AU compiled. But what surprised me
was what i saw after opening the nib file: the interface of
theSampleEffectUnit but not the modified interface that i used for my
AU. To build the interface i modified my SampleEffectUnit class and the
file Localizable.strings that is in English.lproj. That way sucessfully
changed the labels the Units and the number of sliders. They are all
working. I didn't fully understand what i was doing but since it worked
i didn'r bother to investigate any further.
I'm guessing that you're using AudioUnitHosting to manipulate your AU?
You're likely seeing the GenericAUView which Apple ships, and which
provides UI for any audio unit it's given. The sample AU's has only
Cocoa custom UI. Only custom Carbon UI is shown in AudioUnitHosting
(which is why it's defaulting to the generic view.) Use
/Developer/Examples/CoreAudio/Services/CocoaAUHost to see custom Cocoa
UI.
Is it correct that the file "SampleEffectUI.nib" ist not used when the
AU is being buit?
It's used when building the "CocoaUI" target (and is built as part of
the aggregate "AU + CocoaUI" target) but you can build the AU without
the UI (and thus, without the nib.)
Luke
_______________________________________________
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.