small medium large xlarge

Steve_passport_pragsmall
09 Mar 2009, 04:54
Steve Fogel (20 posts)

Hi, all…

What’s the trick to being able to include the header ABAddressBook.h ? It’s not being found, and therefore I can’t use the ABAddressBook class (which has some useful methods over using the ABAddressBookRef C equivalent.)

I’ve declared these in my header file:

import <AddressBook/AddressBook.h>

#import <AddressBookUI/AddressBookUI.h>

and have imported the frameworks AddressBook and AddressBookUI.

declaring this:

import <AddressBook/ABAddressBook.h>

seems to have no effect.

Thx

Steve

Biopic_100x100_pragsmall
09 Mar 2009, 16:53
Bill Dudney (917 posts)

Hi Steve,

You have to include the address book frameworks in your list of linked frameworks.

Steve_passport_pragsmall
10 Mar 2009, 01:24
Steve Fogel (20 posts)

Bill…

That’s the weird thing. I did include the frameworks. Both AddressBook and AddressBookUI. I’m able to use many of the AB features like the view controllers, but I can’t get the compiler to recognize the ABAddressBook class or anything else that the docs say are declared in ABAddressBook.h.

Anyway, I worked around it. Thx

Steve

Biopic_100x100_pragsmall
10 Mar 2009, 03:08
Bill Dudney (917 posts)

very strange indeed!

Glad you got it working anyway.

Steve_passport_pragsmall
16 Mar 2009, 07:41
Steve Fogel (20 posts)

Turns out ABAddressBook class is not implemented on the iPhone. Mac only.

You must be logged in to comment