title: NSSet *someSet = [NSSet alloc] init] vs. NSSet *someSet = [NSSet set]
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8211075/what-is-the-difference-between-these-two-ways-of-allocating-memory-in-objective">What is the difference between these two ways of allocating memory in Objective-C?</a>  </p>
  </blockquote>
  
  
  
  <p>I got tripped up on this. I realized I don't understand the concept of when I <strong>must</strong> use alloc init to create space for an object on the heap.</p>
  
  <p>Via NSSet's class reference I found the class method "set" (<a href="http://goo.gl/ndHjK" rel="nofollow noreferrer">http://goo.gl/ndHjK</a>).</p>
  
  <p>Its description reads "Creates and returns an empty set.", which sounds like precisely what I want. So does this "set" method implicitly perform an alloc init for me?</p>
  
  <p>Or am I confusing two very different things completely?</p>