From: Richard K. <ric...@us...> - 2005-07-14 21:53:50
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25856 Modified Files: NSWindow.as Log Message: key and main window now using notifications Index: NSWindow.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSWindow.as,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** NSWindow.as 13 Jul 2005 15:49:53 -0000 1.20 --- NSWindow.as 14 Jul 2005 21:53:42 -0000 1.21 *************** *** 76,79 **** --- 76,80 ---- // Notifications + public static var NSWindowWillCloseNotification = ASUtils.intern("NSWindowWillCloseNotification"); public static var NSWindowDidBecomeKeyNotification = ASUtils.intern("NSWindowDidBecomeKeyNotification"); public static var NSWindowDidBecomeMainNotification = ASUtils.intern("NSWindowDidBecomeMainNotification"); *************** *** 124,132 **** //if(m_keyWin==null) { //m_keyWin = x; ! m_app.setKeyWindow(this); //} //if(m_mainWin==null) { //m_mainWin = x; ! m_app.setMainWindow(this); //} } --- 125,133 ---- //if(m_keyWin==null) { //m_keyWin = x; ! //m_app.setKeyWindow(this); //} //if(m_mainWin==null) { //m_mainWin = x; ! //m_app.setMainWindow(this); //} } *************** *** 169,172 **** --- 170,175 ---- m_rootView = (new ASRootWindowView()).initWithFrameWindow(m_frameRect, this); setContentView((new NSView()).initWithFrame(NSRect.withOriginSize(convertScreenToBase(m_contentRect.origin), m_contentRect.size))); + makeKeyWindow(); + makeMainWindow(); return this; } *************** *** 383,387 **** if (!m_isMain) { m_isMain = true; ! m_notificationCenter.postNotificationWithNameObject(NSWindowDidBecomeKeyNotification, this); } } --- 386,390 ---- if (!m_isMain) { m_isMain = true; ! m_notificationCenter.postNotificationWithNameObject(NSWindowDidBecomeMainNotification, this); } } |