• 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
Which frameworks to link against to use Address Book APIs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which frameworks to link against to use Address Book APIs?


  • Subject: Which frameworks to link against to use Address Book APIs?
  • From: Matt Gemmell <email@hidden>
  • Date: Tue, 27 Aug 2002 21:51:47 +0100

Hi all,

Just starting to play with the Address Book APIs this evening. I've created a new Cocoa application project in PB, and added AddressBook.framework to the Linked Frameworks.

I then tried compiling a piece of the sample code included in the Address Book API's developer documentation (in Additional Technologies). That code is below, for reference. However, the build fails, saying "undefined type, found `ABAddressBookRef'". What have I done wrong?

Here's the code:

ABAddressBookRef AB = ABGetSharedAddressBook();
ABAddressBook *AB = [ABAddressBook sharedAddressBook];
ABSearchElement *nameIsSmith =
[ABPerson searchElementForProperty:kABLastNameProperty
label:nil
key:nil
value:@"Smith"
comparison:kABEqualCaseInsensitive];
NSArray *peopleFound = [AB recordsMatchingSearchElement:nameIsSmith];


The error flags the first line of it with the message I mentioned above. Any thoughts?


Thanks for any response,
-Matt

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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: Which frameworks to link against to use Address Book APIs?
      • From: Ondra Cada <email@hidden>
    • Re: Which frameworks to link against to use Address Book APIs?
      • From: Matt Gemmell <email@hidden>
  • Prev by Date: Re: what happened to option-double-click to see docs?
  • Next by Date: Re: Mouse entered and exited events
  • Previous by thread: Overriding methSigForSelect when forwarding?
  • Next by thread: Re: Which frameworks to link against to use Address Book APIs?
  • Index(es):
    • Date
    • Thread