FROM : ab_lists
DATE : Mon Nov 19 23:33:07 2007
The only way to ensure that your code is working on both platforms is
to first compile against the 10.4 SDK to outline the areas that are
missing because you're using 10.5 functionality. Check the compiler
warnings (and probably when you run it you can find some as well, I
hope you have a good test suite). Armed with this information you can
then test at runtime for the existence of linked-in functions/methods
and re-create the missing constants from 10.5. After that you could
compile against 10.5 again.
But this is an error-prone way to do it. If your functionality is
limited to something that can be loaded through a bundle, that is the
preferred way to achieve this.
All these things have been hashed out in previous versions of OS X
(check the archives) and the Xcode documentation regarding this area
is definitely something you need to take a look at.
Cheers,
Annard
On 19 Nov 2007, at 23:17, Patrick M wrote:
>
> Also, what is the correct way to launch 10.4/10.5 mixed code on 10.4?
> I only have a few areas that need 10.5 functionality (namely updating
> the X509Anchors importing -> import to login keychain and set cert as
> trusted) and it works fine on 10.5 using Gestalt(), but won't load on
> 10.4. The documentation is not very helpful on troubleshooting this.
>
> On Oct 27, 2007 2:34 PM, Mitchell Livingston <<email_removed>>
> wrote:
>> Hey,
>>
>> I want my application to be able to run on Tiger and greater, but I
>> also want it to have additional Leopard functionality when running on
>> 10.5. I have been able to execute certain functions with
>> +respondsToSelector:, but new constants and such cannot be used. I
>> tried changing the sdk to 10.5 and it did compile, but it won't run
>> at
>> all on 10.4. I'm sure there is a way to get this working, but I
>> cannot
>> find it in the documentation.
DATE : Mon Nov 19 23:33:07 2007
The only way to ensure that your code is working on both platforms is
to first compile against the 10.4 SDK to outline the areas that are
missing because you're using 10.5 functionality. Check the compiler
warnings (and probably when you run it you can find some as well, I
hope you have a good test suite). Armed with this information you can
then test at runtime for the existence of linked-in functions/methods
and re-create the missing constants from 10.5. After that you could
compile against 10.5 again.
But this is an error-prone way to do it. If your functionality is
limited to something that can be loaded through a bundle, that is the
preferred way to achieve this.
All these things have been hashed out in previous versions of OS X
(check the archives) and the Xcode documentation regarding this area
is definitely something you need to take a look at.
Cheers,
Annard
On 19 Nov 2007, at 23:17, Patrick M wrote:
>
> Also, what is the correct way to launch 10.4/10.5 mixed code on 10.4?
> I only have a few areas that need 10.5 functionality (namely updating
> the X509Anchors importing -> import to login keychain and set cert as
> trusted) and it works fine on 10.5 using Gestalt(), but won't load on
> 10.4. The documentation is not very helpful on troubleshooting this.
>
> On Oct 27, 2007 2:34 PM, Mitchell Livingston <<email_removed>>
> wrote:
>> Hey,
>>
>> I want my application to be able to run on Tiger and greater, but I
>> also want it to have additional Leopard functionality when running on
>> 10.5. I have been able to execute certain functions with
>> +respondsToSelector:, but new constants and such cannot be used. I
>> tried changing the sdk to 10.5 and it did compile, but it won't run
>> at
>> all on 10.4. I'm sure there is a way to get this working, but I
>> cannot
>> find it in the documentation.
| Related mails | Author | Date |
|---|---|---|
| Mitchell Livingsto… | Oct 27, 21:34 | |
| Shawn Erickson | Oct 27, 21:40 | |
| Patrick M | Nov 19, 23:17 | |
| ab_lists | Nov 19, 23:33 | |
| Chris Hanson | Nov 20, 02:39 | |
| Annard Brouwer | Nov 20, 10:17 |






Cocoa mail archive

