• 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
Correct way to get a person in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct way to get a person in Address Book


  • Subject: Correct way to get a person in Address Book
  • From: Darwin Zins <email@hidden>
  • Date: Tue, 11 Nov 2003 20:42:40 -0600

I am new to Objective-C and Cocoa and I have a question. I have the
following code (where abID is an NSString containing the UID):

_macAddressBook = [ABAddressBook sharedAddressBook];
[_macAddressBook retain];
ABPerson * macABEntry;
macABEntry = [_macAddressBook recordForUniqueId: abID ];

Compiling this gives me a warning "assignment from incompatible pointer
type" for the last line. The code actually works, but what is the
correct way to do this?

Thank you,

Darwin
_______________________________________________
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: Correct way to get a person in Address Book
      • From: mmalcolm crawford <email@hidden>
    • Re: Correct way to get a person in Address Book
      • From: "Mike R. Manzano" <email@hidden>
  • Prev by Date: Re: XCode not releasing nsstring
  • Next by Date: Re: Disabling sorting in NSTableView
  • Previous by thread: Darker background
  • Next by thread: Re: Correct way to get a person in Address Book
  • Index(es):
    • Date
    • Thread