On Jul 19, 2009, at 5:05 PM, mmalc Crawford wrote:

The fundamental behaviour is that method returns NO if something goes wrong.

As Jerry kindly pointed out off-list, this method of course returns nil -- not NO -- if something goes wrong. The important issue (and one which has given rise to several threads in the past, which is why the pattern warrants clarification) is that you should check the method's return value, not the error parameter, to determine whether the operation was successful.

mmalc

_______________________________________________

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 arch...@mail-archive.com

Reply via email to