Re: [ABPerson properties]: selector not recognized
Re: [ABPerson properties]: selector not recognized
- Subject: Re: [ABPerson properties]: selector not recognized
- From: Shawn Erickson <email@hidden>
- Date: Sun, 13 Jul 2003 09:10:09 -0700
On Sunday, July 13, 2003, at 06:22 AM, Stefan Pantke wrote:
ABPerson defines an interface
@interface ABPerson (ABPerson_Properties)
If I retrieve all person from the AB, and I try to retrieve
the properties from a person, ABPerson tells me
[ABPerson properties]: selector not recognized
Do I have to perform something special to use this interface?
(no need to cross post...)
I included the AddressBook.framework and did this...
#import <Foundation/Foundation.h>
#import <AddressBook/ABPerson.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSLog(@"%@", [ABPerson properties]);
[pool release];
return 0;
}
which results in this...
2003-07-13 09:05:21.182 test[1928]
<CFArray 0x7e6f0 [0xa01303fc]>{type = mutable-small, count = 28, values
= (
0 : <CFString 0x7ded0 [0xa01303fc]>{contents = "Organization"}
1 : <CFString 0x7fc70 [0xa01303fc]>{contents = "First"}
2 : <CFString 0x7e3c0 [0xa01303fc]>{contents = "MSNInstant"}
3 : <CFString 0x7e690 [0xa01303fc]>{contents = "HomePage"}
4 : <CFString 0x7ea00 [0xa01303fc]>{contents = "Middle"}
5 : <CFString 0x7eb70 [0xa01303fc]>{contents = "MiddlePhonetic"}
6 : <CFString 0x7ece0 [0xa01303fc]>{contents = "Last"}
7 : <CFString 0x7f080 [0xa01303fc]>{contents = "Note"}
8 : <CFString 0x7f830 [0xa01303fc]>{contents = "JobTitle"}
9 : <CFString 0x7dde0 [0xa01303fc]>{contents = "UID"}
10 : <CFString 0x7fde0 [0xa01303fc]>{contents = "Nickname"}
11 : <CFString 0x7ff60 [0xa01303fc]>{contents = "JabberInstant"}
12 : <CFString 0x80430 [0xa01303fc]>{contents = "Suffix"}
13 : <CFString 0x80740 [0xa01303fc]>{contents = "Creation"}
14 : <CFString 0x808c0 [0xa01303fc]>{contents = "Birthday"}
15 : <CFString 0x7e050 [0xa01303fc]>{contents = "AIMInstant"}
16 : <CFString 0x7e520 [0xa01303fc]>{contents = "Email"}
17 : <CFString 0x7e1f0 [0xa01303fc]>{contents = "ICQInstant"}
18 : <CFString 0x7fb00 [0xa01303fc]>{contents = "Address"}
19 : <CFString 0x7e890 [0xa01303fc]>{contents = "FirstPhonetic"}
20 : <CFString 0x7ee50 [0xa01303fc]>{contents = "MaidenName"}
21 : <CFString 0x7e750 [0xa01303fc]>{contents = "LastPhonetic"}
22 : <CFString 0x7f3c0 [0xa01303fc]>{contents = "Phone"}
23 : <CFString 0x7f530 [0xa01303fc]>{contents = "Modification"}
24 : <CFString 0x7f9a0 [0xa01303fc]>{contents = "Title"}
25 : <CFString 0x7f6b0 [0xa01303fc]>{contents = "YahooInstant"}
26 : <CFString 0x7f250 [0xa01303fc]>{contents = "ABPersonFlags"}
27 : <CFString 0x805b0 [0xa01303fc]>{contents = "StoredPictureName"}
)}
I have 10.2.6 installed on this system, you may be using an older
framework?
-Shawn
_______________________________________________
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.