From: Tay R. C. <rc...@us...> - 2005-07-16 02:53:19
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30974/actionstep/org/actionstep/test Modified Files: ASTestSheet.as Log Message: Some minor changes to remove old code Index: ASTestSheet.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestSheet.as,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ASTestSheet.as 15 Jul 2005 22:37:15 -0000 1.3 --- ASTestSheet.as 16 Jul 2005 02:53:06 -0000 1.4 *************** *** 37,44 **** self = ASTestSheet, app:NSApplication = NSApplication.sharedApplication(), ! main:NSWindow, error:NSWindow, other:NSWindow, ! view1, view2,// view3, begin:NSButton, end:NSButton, ! textField:NSTextField, textField2:NSTextField public static function test() { --- 37,45 ---- self = ASTestSheet, app:NSApplication = NSApplication.sharedApplication(), ! main:NSWindow, other:NSWindow, ! view1, view2, begin:NSButton, end:NSButton, ! textField:NSTextField, textField2:NSTextField, ! nc:NSNotificationCenter public static function test() { *************** *** 46,51 **** main= (new NSWindow()).initWithContentRectStyleMask(new NSRect(50,50,250,250), NSWindow.NSTitledWindowMask); main.setTitle("Main"); - //error = (new NSWindow()).initWithContentRectStyleMask(new NSRect(125,100,250,250), NSWindow.NSTitledWindowMask); - //error.setTitle("Error"); other = (new NSWindow()).initWithContentRectStyleMask(new NSRect(400,100,250,250), NSWindow.NSTitledWindowMask); other.setTitle("Some Other Window"); --- 47,50 ---- *************** *** 55,60 **** view2 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); view2.setBorderColor(new NSColor(0xFF0000)); - var view3 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); - view3.setBorderColor(new NSColor(0xFF0000)); begin = (new NSButton()).initWithFrame(new NSRect(10,80,70,30)); --- 54,57 ---- *************** *** 84,90 **** main.setContentView(view1); ! other.setContentView(view3); ! //other.setContentView(view3); ! view2.setHidden(true); app.run(); --- 81,85 ---- main.setContentView(view1); ! other.setContentView(view2); app.run(); *************** *** 105,111 **** main.resignKeyWindow(); - //view2.setHidden(false); ! alert.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(main, self, "alertDidEndReturnCodeContextInfo", null); } --- 100,106 ---- main.resignKeyWindow(); ! alert.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ! (main, self, "alertDidEndReturnCodeContextInfo", null); } |