From: Scott H. <sco...@us...> - 2005-07-14 03:00:48
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24853/src/org/actionstep Modified Files: NSDictionary.as Log Message: Fixed bug in dictionaryWithObjectsAndKeys Implemented description() method Index: NSDictionary.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSDictionary.as,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NSDictionary.as 10 Jun 2005 02:56:17 -0000 1.4 --- NSDictionary.as 14 Jul 2005 03:00:39 -0000 1.5 *************** *** 178,181 **** --- 178,184 ---- public function initWithObjectsAndKeys():NSDictionary { + TRACE(arguments); + TRACE(arguments.length); + var args:Array = arguments; var obj:Object; *************** *** 246,250 **** public function description():String { ! return "NSDictionary"; } --- 249,265 ---- public function description():String { ! var ret:String = "NSDictionary("; ! ! for (var key:String in m_dict) ! { ! ret += "\"" + key + "\"=>" + m_dict[key].toString() + ","; ! } ! ! if (count() > 0) ! ret = ret.substr(0, ret.length -1); ! ! ret += ")"; ! ! return ret; } *************** *** 568,572 **** public static function dictionaryWithObjectsAndKeys():NSDictionary { ! return (new NSDictionary()).initWithObjectsAndKeys(arguments); } } --- 583,590 ---- public static function dictionaryWithObjectsAndKeys():NSDictionary { ! var dict:NSDictionary = new NSDictionary(); ! dict.initWithObjectsAndKeys.apply(dict, arguments); ! ! return dict; } } |