• 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: Bill Cheeseman <email@hidden>
  • Date: Fri, 06 Sep 2002 12:05:09 -0400

on 02-09-06 10:52 AM, Ondra Cada at email@hidden wrote:

>> (should be a NULL, I believe, at least according to the documentation).
>
> No. These are _objects_, and therefore nil is what you want. NULLs are for
> pointers (you use it eg. in scanner methods, for things like NSString**).

And NULL for SEL parameters where allowed, as in sheet functions.

So, you are saying the documentation for NSDictionary's
+dictionaryWithObjectsAndKeys: is just wrong -- or carelessly worded?

From the class reference document: "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 note that the "null" in "null-terminated list" in the quote is lower-case,
so perhaps not meant to refer to NULL.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Get parent process (Carbon question)
  • Next by Date: Printing PDF Bytes: Best Way (?)
  • Previous by thread: Re: Addressbook api
  • Next by thread: Re: Addressbook api
  • Index(es):
    • Date
    • Thread