Implementing NSCoding protocol
<p>I'm working on a obj-c project and I want to implement the NSCoding protocol for a class, but I can't get it right. The code looks like this:</p>

<pre><code>#include &lt;Foundation/Foundation.h&gt;

class Object: NSObject, NSCoding {
    //Somecode
}
</code></pre>

<p>And I get the error: "Base specifier must name a class" and "Expected class name". What am I doing wrong?</p>