Re: Addressbook api
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.