Address Book, Rendezvous, and NSCoding
Address Book, Rendezvous, and NSCoding
- Subject: Address Book, Rendezvous, and NSCoding
- From: Greg Anderson <email@hidden>
- Date: Thu, 18 Sep 2003 14:05:51 -0500
I'm trying to write an app to shove ABAddressBook information through
Rendezvous. My major hurdle is the fact that it looks like none of the
AB classes conform to NSCoding, so I can't use an NSArchiver to convert
the info to NSData to send out. The closest I've gotten is using
-people to get the NSArray of ABPerson objects, then putting its
-description into an NSString and archiving that. Unfortunately,
converting the other way doesn't work, because the received NSString's
-propertyList method fails, complaining about a malformed plist format
and whatnot.
Has anyone else attempted this and done it (easily)? I see a few apps
out there that talk about being able to share your AB entries via
Rendezvous, but w/out source it's hard to learn much from them. I'm not
sure if they just send a subset of data, or have worked out a way to
send all the info. I've gotten around similar situations (where a data
type doesn't conform to NSCoding) by just deconstructing it into data
types that do conform to NSCoding, and using that. But since that looks
like a pretty weighty proposition for NSPerson objects, I'd prefer an
easier solution.
Any info or ideas would be greatly appreciated.
Greg
---
Greg T. Anderson
"An apostrophe is not a warning that the letter 'S' is coming."
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.