OS X 10.3.x, Address Book, and initWithVCardRepresentation
OS X 10.3.x, Address Book, and initWithVCardRepresentation
- Subject: OS X 10.3.x, Address Book, and initWithVCardRepresentation
- From: Greg Anderson <email@hidden>
- Date: Thu, 4 Mar 2004 15:29:07 -0600
I'm not sure if this is a bug or if things just changed between 10.2.x
and 10.3.x, but ...
My app transfers AB records in VCard format over the network, and then
adds them to the Address Book if need be. I was testing it with one
computer running 10.3.2 and one running 10.2.8 and the 10.3.2 machine
kept crashing when it tried to add a new person to the AB.
It turns out that on 10.2.8, when I do the ol' [[ABPerson alloc]
initWithVCardRepresentation:myData] autorelease], it makes an ABPerson
record that the ABAddressBook likes. But on 10.3.2, that same code
produces an ABPerson record without a UID. Try addRecord-ing that to
your shared Address Book and it chokes with a bad access error, I'm
guessing while trying to access the UID it's looking for.
I could just alloc and init an ABPerson and then cycle through the
properties from the VCard and add all the property info I can find, but
that doesn't seem right. Is -initWithVCardRepresentation alone no
longer sufficient to create a valid ABPerson (and if so, shouldn't it
not have "init" at the beginning anymore?) or is this a bug (in which
case I'll head over to the bug reporter).
Thanks.
Greg
---
Greg T. Anderson
Mac Geek
http://homepage.mac.com/torgo
_______________________________________________
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.