Re: "weak link" framework refs for 10.1 compatibility?
Re: "weak link" framework refs for 10.1 compatibility?
- Subject: Re: "weak link" framework refs for 10.1 compatibility?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 10 Nov 2002 17:45:29 -0500
on 02-11-10 12:34 PM, Piers Uso Walter at email@hidden wrote:
>
// Initially we used the NSAppKitVersionNumber in order to decide
>
which bundle version to load (NSAppKitVersionNumber < 645.3:
>
AddressBundle_10.1.bundle, NSAppKitVersionNumber >= 645.3:
>
AddressBundle_10.2.bundle). This works without any problems, but is not
>
very elegant from a conceptual standpoint. It is somewhat far-fetched to
>
use the AppKit framework version in order to deduce which address
>
framework may be present in a system.
Actually, Apple pretty much promotes this as a reliable technique. As long
as Apple continues to follow its established (but not particularly well
documented) policy of not incrementing the whole number of the AppKit or
foundation version numbers between major releases, you're OK. Assuming that
Apple doesn't radically change the Address Book framework in an interim
release. You can test for interim releases using the Gestalt function.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.