Re: Addressbook api
Re: Addressbook api
- Subject: Re: Addressbook api
- From: Henri Lamiraux <email@hidden>
- Date: Fri, 6 Sep 2002 06:49:43 -0700
On Friday, September 6, 2002, at 05:03 AM, Bill Cheeseman wrote:
>
1. You're saying that Cocoa programmers using the Cocoa Address Book
>
framework are responsible for converting the Address Book constants
>
(like
>
kABIntegerProperty) into NSNumber objects themselves for purposes of
>
adding
>
a property to a person? This isn't handled by the Cocoa Address Book
>
APIs?
>
Shouldn't it be?
>
Yes. We have a request for having those constants directly available as
NSNumber. But adding a property is the only time you need to create one
of those NSNumber and you are (hopefully) not creating thousand of new
properties.
2. You're saying that, in this case, NSDictionary's
>
dictionaryWithObjectsAndKeys class method requires two trailing nils?
>
(From
>
the NSDictionary documentation: "dictionaryWithObjectsAndKeys: takes a
>
variable number of arguments: a null-terminated list of alternating
>
objects
>
and keys. If any key is nil, an NSInvalidArgumentException is
>
raised.") I
>
think you want a single trailing NULL there.
I always been using two trailer nils. Maybe one is enough. I need to
try it. But two work fine.
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
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.