Re: Building AudioUnits for Mac OS 10.4 on Snow Leopard
Re: Building AudioUnits for Mac OS 10.4 on Snow Leopard
- Subject: Re: Building AudioUnits for Mac OS 10.4 on Snow Leopard
- From: tahome izwah <email@hidden>
- Date: Mon, 7 Sep 2009 11:45:15 +0200
You can do this via the -respondsToSelector method.
Setting the deployment target to 10.4 is all you need to do. On 10.5.
setting both the target and base SDK to 10.4. fails as well on my
machine.
--th
2009/9/7 Jean-Daniel Dupas <email@hidden>:
>
> Le 7 sept. 2009 à 10:58, Muon Software Ltd - Dave a écrit :
>
>> Bill,
>>
>> I just got around to trying to build one of the demo AUs (sinSynth)
>> against Core Audio SDK 1.5 (as deployed with XCode 3.1.3) and it definately
>> fails when the Base SDK and Deployment Target are both set to 10.4. Changing
>> the Base SDK to 10.5 and leaving Deployment Target on 10.4 allows the build
>> to succeed. Target architecture is 32-bit Universal in both cases.
>>
>> If this isn't the desired behaviour I'm happy to file a bug.
>>
>> However, if I am understanding cross-development correctly (and there's a
>> good chance I am not!) then surely changing the Deployment Target to 10.4
>> and leaving the Base SDK at 10.5 *should* give you an AU that will work fine
>> on Tiger, right? what would be the possible disadvantages of doing things
>> this way?
>
> That's the recommended way to do. The main disadvantage is that if you
> inadvertently call a method that is available on 10.5 only, the compiler
> will not warn you. Note that using 10.5 feature is perfectly valid even if
> you deploy on 10.4, as long as you check that the function exists before
> calling it:
>
> if (AFunctionAvailableOn105Only) {
> AFunctionAvailableOn105Only(args);
> } else {
> // 10.4 way to do this
> }
>
>
> _______________________________________________
> 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
>
_______________________________________________
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