ABAddressBook anomaly.
ABAddressBook anomaly.
- Subject: ABAddressBook anomaly.
- From: "Jean-Olivier Lanctôt-D." <email@hidden>
- Date: Wed, 13 Nov 2002 18:28:10 -0500
Hello,
I'm currently learning to use the ABAddressBook framework.
In my Tester app, I have this code:
- (void)awakeFromNib {
NSArray *anArray = [[ABAddressBook sharedAddressBook] people];
NSLog(@"%@",[[anArray objectAtIndex:20] properties]);
}
After launching, the app crashes on
NSLog(@"%@"[[anArray objectAtIndex:20] properties]);
2002-11-13 18:15:44.000 ABAddressBook Example[1743] *** Uncaught
exception: <NSInvalidArgumentException> *** -[ABPerson properties]:
selector not recognized
ABAddressBook Example has exited due to signal 5 (SIGTRAP).
Yes, the twentieth object in the array is valid.
This is kind of odd because if you look in the framework headers,
you'll read this code
In ABAddressBook/ABPerson.h
@interface ABPerson (ABPerson_Properties)
...
+ (NSArray *)properties;
...
@end
Can anyone help me?
--Jean-Olivier
_______________________________________________
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.