title: Objective-C asking for alloc on swift class
body: <p>Some small steps to begin wrapping my head around Swift. I've basically ported an old class that simply finds the matching icon for a name and return the appropriate UIImage. The Swift part of things seems to be up and running, and looks (almost) like this:</p>
  
  <pre><code>@objc class ImageHandler{
  
      func iconForData(data: MyData) -&gt; UIImage{
          let imagesAndNames = [
              "1": "tree.png",
              "2": "car.png",
              "3": "house.png",
              "7": "boat.png",
          ]
  
          var imageName: String? = imagesAndNames[data.imageName]
          if !imageName{
              imageName = "placeholder.png"
          }
          let icon = UIImage(named: imageName)
          return icon
      }
  }
  </code></pre>
  
  <p>There are no warnings on the above. My old Objective-C class is however  asking for an alloc method on the swift class. </p>
  
  <pre><code>ImageHandler *imageHandler = [ImageHandler alloc] init];
  </code></pre>
  
  <p>Returns the error "No known class method for selector 'alloc' which is true enough I guess, but how do I escape this? Will I <em>have</em> to base my swift-class of NSObject to avoid this?</p>