Added support for hiding and showing the main MunkiStatus window.

git-svn-id: http://munki.googlecode.com/svn/trunk@252 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-10-13 22:07:26 +00:00
parent 19edc0df5d
commit e3c4198db3
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>CFBundleSignature</key>
<string>MkSt</string>
<key>CFBundleVersion</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
+7 -2
View File
@@ -131,8 +131,7 @@ class MSController(NSObject):
NSThread.detachNewThreadSelector_toTarget_withObject_(self.handleSocket, self, None)
NSApp.activateIgnoringOtherApps_(True)
def handleSocket(self):
def handleSocket(self):
# Autorelease pool for memory management
pool = NSAutoreleasePool.alloc().init()
@@ -191,6 +190,12 @@ class MSController(NSObject):
if message.startswith("ACTIVATE: "):
NSApp.activateIgnoringOtherApps_(True)
return ""
if message.startswith("HIDE: "):
self.window.orderOut_(self)
return ""
if message.startswith("SHOW: "):
self.window.orderFront_(self)
return ""
if message.startswith("TITLE: "):
self.window.setTitle_(message[7:])
return ""