Re: Address Book Helper code released to public domain
Re: Address Book Helper code released to public domain
- Subject: Re: Address Book Helper code released to public domain
- From: Jason Bell <email@hidden>
- Date: Wed, 1 Oct 2003 02:18:33 -0400
Given your email domain, and your use of the third person in your
response below, this seems like a solution you could have easily
provided when pointing out the flaw instead of going on the defensive.
Wow. That's all I'll say about that.
I think extending the interface of ABPerson like this is a great
approach and a good demo of Obj-C's ability to do this. I'm sure this
code will also help people new to the AddressBook framework (either by
using it or just by looking at the source to understand the framework
itself).
However, one suggestion might be to have, for example, [person
workPhone] return an NSArray of strings, or better yet, add a method
"workPhones" that would return an array. Still pretty simple and still
avoiding indexForIdentifier and valueAtIndex calls.
Of course, anyone can make this addition on their own since the author
was kind enough to make the source code freely available (that is
primarily why I'm posting to the list and not the author directly).
Jason
On Sep 30, 2003, at 8:01 AM, Joseph Jones wrote:
This is great, but if i have 2 work or hone email addresses which
one
does it get???
The first one it finds in the Multi Valued property dictionary for
kABPhoneProperty. The code right now assumes one value per label.
Just to make everything clear this assumption is wrong. Which is why
we wrote ABMultiValue, it wasn't done to make things difficult for >
you.
vince
_______________________________________________
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.