From: Tay R. C. <rc...@us...> - 2005-07-16 02:59:09
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31886/actionstep/org/actionstep Modified Files: NSAlert.as Log Message: supports - (ASAlertPanel) window Index: NSAlert.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSAlert.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NSAlert.as 15 Jul 2005 20:00:09 -0000 1.2 --- NSAlert.as 16 Jul 2005 02:59:00 -0000 1.3 *************** *** 49,53 **** private var m_helpAnchor:String; private var m_delegate:Object; ! private var m_app:NSApplication; public static function alertWithMessageTextDefaultButtonAlternateButtonOtherButton --- 49,53 ---- private var m_helpAnchor:String; private var m_delegate:Object; ! private var m_app:NSApplication; private var m_sheet:ASAlertPanel; public static function alertWithMessageTextDefaultButtonAlternateButtonOtherButton *************** *** 175,179 **** // FIXME }*/ ! //-(id) window //! remove sheet --- 175,182 ---- // FIXME }*/ ! //should be uncasted, if Cocoa-styled ! public function window():ASAlertPanel { ! return m_sheet; ! } //! remove sheet *************** *** 181,192 **** (window:NSWindow, delegate, sel:String, ctxt:Object):Void { var list:Array = m_buttons.internalList(); ! var sheet:ASAlertPanel = ASAlertPanel.NSGetAlertPanel ("", m_msg, list[0].title(), list[1].title(), list[2].title()); ! sheet.display(); ! var content = sheet.contentView(); ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xdddddd); //add it to arg array ! arguments.unshift(sheet); m_app.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo.apply(m_app, arguments); } --- 184,196 ---- (window:NSWindow, delegate, sel:String, ctxt:Object):Void { var list:Array = m_buttons.internalList(); ! m_sheet = ASAlertPanel.NSGetAlertPanel ("", m_msg, list[0].title(), list[1].title(), list[2].title()); ! ! m_sheet.display(); ! var content = m_sheet.contentView(); ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xdddddd); //add it to arg array ! arguments.unshift(m_sheet); m_app.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo.apply(m_app, arguments); } |