|
From: Rupert B. <rup...@fr...> - 2005-11-10 09:27:53
|
Of course ! It works. Great. Thanks for your help. I still have a problem with the syncing, which also occurs with the =20 Objective C program. As soon as I have fixed this, I will post the full sample. Cheers, Rup Le 10 nov. 05 =C3=A0 09:49, Jonathan Paisley a =C3=A9crit : > 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 =20 >> generated within 'encodeWithCoder' : >> Exception occured while syncing: *** -encodeObject:forKey: only =20 >> defined for abstract class. Define -[NSArchiver =20 >> encodeObject:forKey:]! > > It might be this: > > coder.allowsKeyedCoding > > will be returning an int (0 or 1), which are both true in ruby. Try =20= > using > > code.allowsKeyedCoding? > > instead. > > |