title: Swift call class function from corresponding subclass in superclass function
body: <p>I would like to implement <code>init(coder aDecoder: NSCoder!)</code> in a superclass, and use it in all subclasses by calling a class method on the particular subclass in the superclass at runtime. </p>
  
  <h3>MySuperClass</h3>
  
  <pre><code>class func dummyDict() -&gt; NSDictionary
  
  init(coder aDecoder: NSCoder!) {
  
      for(key,value) in self.class.dummyDict(){
                        --------------------
                                 ^
                                 |
                                 |
                   Get this from the corresponding subclass at runtime!
  
          NSLog("encoding \(value) for key \(key)")
      }
  
  }
  </code></pre>
  
  <p>Is it possible that subclasses from <code>MySuperClass</code> access the class function <code>dummyDict()</code> at runtime ? </p>