On 2008 Jun, 12, at 0:47, Chris Suter wrote:

On 12/06/2008, at 5:29 PM, Graham Cox wrote:
... implicitly allowing nil, unless it is specifically documented otherwise.

Can you give me a counter-example?

-[NSDictionary setObject:forKey:]
-[NSMutableArray addObject:]

[These] raise exceptions if you pass in nil.

However, these results are now documented! I believe they were not documented a couple years ago. I and probably many others filed bugs on this.

But I've noticed "must not be nil" comments appearing in Apple documentation over the last couple years.

So, I would say that Graham is correct about the requirement for documentation, although probably there still may be omissions (bugs) in older Apple docs.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to