*** /usr/tmp/CGItemp64126 Wed Sep 24 10:40:35 2008 --- /usr/tmp/CGItemp64127 Wed Sep 24 10:40:35 2008 *************** *** 67,73 **** */ - (id)copy { ! return self; } /* --- 67,85 ---- */ - (id)copy { ! var copy = class_createInstance([self class]), ! ivars = class_copyIvarList([self class]), ! i = 0, ! name = ""; ! ! for (; i < ivars.length; i++) ! { ! var name = ivar_getName(ivars[i]); ! ! copy[name] = self[name]; ! } ! ! return copy; } /*