• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Addressbook api
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Addressbook api
      • From: Ondra Cada <email@hidden>
    • Re: Addressbook api
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Addressbook api (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: IB does not recognise documentation or classes?
  • Next by Date: Re: Addressbook api
  • Previous by thread: Re: Addressbook api
  • Next by thread: Re: Addressbook api
  • Index(es):
    • Date
    • Thread