title: Which methods will raise NSInvalidArgumentException?
body: <p>I'm using Objective-c and cocoa api for a while. But I don't know which methods in cocoa apis will raise NSInvalidArgumentException if I pass nil to the parameters. </p>
  
  <p>How can I get the list that all methods will raise NSInvalidArgumentException and which parameter can not be nil. The offical documents is not very clear sometimes and the informations are decentralized. </p>
  
  <p>Like this method </p>
  
  <blockquote>
    <p>NSData's -writeToURL:options:error:</p>
  </blockquote>
  
  <p>I know the first parameter can not be nil or it will crash, but the document never tell me that information. How can I know in all Cocoa APIs, which methods can't not receive nil parameter and will raise NSInvalidArgumentException.</p>