title: Self in Class Method
body: <p>I am reading some Objective-C code in a well-maintained GitHub repo. <a href="https://github.com/soffes/sskeychain/blob/master/SSKeychain.m" rel="nofollow">https://github.com/soffes/sskeychain/blob/master/SSKeychain.m</a></p>
  
  <p>I came across some weird lines (at least weird to my eyes).</p>
  
  <pre><code>+ (NSArray *)allAccounts {
      return [self accountsForService:nil error:nil];
  }
  </code></pre>
  
  <p>I was taught that <strong>self</strong> refers to the instance itself in an instance method. So what does <strong>self</strong> mean here, in a class method?</p>