Re: Resource contexts and AUCarbonView
Re: Resource contexts and AUCarbonView
- Subject: Re: Resource contexts and AUCarbonView
- From: Art Gillespie <email@hidden>
- Date: Wed, 13 Nov 2002 09:35:22 -0500
Here's how I do it. See the 'Bundle Services' topic under 'Core Foundation'
in the Carbon docs for better explanations.
/*
* Get a reference to our bundle using the unique identifier. (Set in
ProjectBuilder->Targets->
* Info.plist Entries->Expert View->Bundle Identifier
*/
CFBundleRef bundle =
CFBundleGetBundleWithIdentifier(CFSTR("com.bitshiftaudio.Instruments.phatmat
ik"));
... Check for errors ...
SInt16 tmp = CurResFile();
CFBundleOpenBundleResourceMap(bundle); //this sets cur res file
... Do stuff ...
UseResFile(tmp); //restore the original res file
Best,
Art
>
>0xBA
On 11/13/02 9:16 AM, "Angus F. Hewlett" <email@hidden> wrote:
>
Hi,
>
>
Apologies for the flood of questions... I'm porting some existing
>
CFM-based code (VST plugins) to AU. Under VST, the host sets the plug's
>
resource context (with UseResFile()) before calling in to the plug.
>
However, I can't seem to get this functionality working in AUCarbonView.
>
>
What approach are others taking to this? Seems component bundles handle
>
these things a bit differently than in the past, but I've not quite got my
>
head around it yet.
>
>
Regards,
>
Angus.
>
>
=======================================================
>
Angus F. Hewlett, Technical Director
>
FXpansion Audio UK Ltd - http://www.fxpansion.com
>
=======================================================
>
_______________________________________________
>
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.