From: Jonathan P. <jp...@dc...> - 2005-11-10 08:50:34
|
On 10 Nov 2005, at 6:04, Rupert BARROW wrote: > def initWithCoder(coder) > self.super_init > if (coder.allowsKeyedCoding) > [snip] > However, the program comes up with the following error, which is > generated within 'encodeWithCoder' : > Exception occured while syncing: *** -encodeObject:forKey: only > defined for abstract class. Define -[NSArchiver > encodeObject:forKey:]! It might be this: coder.allowsKeyedCoding will be returning an int (0 or 1), which are both true in ruby. Try using code.allowsKeyedCoding? instead. |