From: Tay R. C. <rc...@us...> - 2005-06-28 10:01:51
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1819 Modified Files: NSObject.as Log Message: Has copy method Index: NSObject.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSObject.as,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** NSObject.as 10 Jun 2005 02:56:17 -0000 1.10 --- NSObject.as 28 Jun 2005 10:01:36 -0000 1.11 *************** *** 138,140 **** --- 138,149 ---- return NSObject(res); } + + public function copy() { + var f = this["copyWithZone"]; + if(f instanceof Function) { + return f.call(this); + } else { + throw new Error("Class doesn't implement NSCopying"); + } + } } \ No newline at end of file |