• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sample Code for "weak-linking" to a framework using NSAddressOfSymbol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sample Code for "weak-linking" to a framework using NSAddressOfSymbol


  • Subject: Sample Code for "weak-linking" to a framework using NSAddressOfSymbol
  • From: Dan Wood <email@hidden>
  • Date: Fri, 08 Nov 2002 14:41:18 -0800

This is a follow-up to an earlier question about "weak linking" -- it turns out (Thanks, Ben) that you can weakly link frameworks, but this is 10.2 only, so it only makes sense for apps which require 10.2 or above.

I'd like to be able to have code that accesses the address book framework, but still allow running under 10.1. I've seen mentions on the archives of using NSAddressOfSymbol to manually load and execute code as a possible solution -- but nothing really tangible!

Does anybody know of a snippet of code that I can look at to help me figure out how to load the address book framework (is there any initialization needed), and then invoke some of its methods from Objective C?

(Matthew Formica said there was a technote forthcoming ... maybe soon?)

I'm stumped -- I may have to pull the address-book feature until I can figure this out, or force all my users to be on 10.2, which I don't think I'm ready for yet....

Regards,
Dan Wood



--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/

The information contained in this message or any of its attachments may be privileged and confidential and intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Sample Code for "weak-linking" to a framework using NSAddressOfSymbol
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: AddressBook & phone multivalue
  • Next by Date: Re: Calling a unix command from Cocoa ?
  • Previous by thread: Re: AddressBook & phone multivalue
  • Next by thread: Re: Sample Code for "weak-linking" to a framework using NSAddressOfSymbol
  • Index(es):
    • Date
    • Thread