kodecocodes / objective-c-style-guide

A style guide that outlines the coding conventions for Kodeco
http://www.raywenderlich.com/62570/objective-c-style-guide
3.1k stars 628 forks source link

Error handling #62

Open Aymenworks opened 9 years ago

Aymenworks commented 9 years ago

"Some of Apple’s APIs write garbage values to the error parameter (if non-NULL) in successful cases, so switching on the error can cause false negatives (and subsequently crash)."

Hello,

Do you have some examples of Apple API that do that ? That fill the NSError in success cases ?