initial commit
[pycedict.git] / build / Debug / PyCEDict.app / Contents / Resources / PyCEDictAppDelegate.py
blob2803c1296550f52d08c5e053a8c0142dd8bf1a3e
1 # -*- coding: utf-8 -*-
3 # PyCEDictAppDelegate.py
4 # PyCEDict
6 # Created by foosh on 7/30/08.
7 # Copyright __MyCompanyName__ 2008. All rights reserved.
10 from Foundation import *
11 from AppKit import *
13 class PyCEDictAppDelegate(NSObject):
14 mainWindow = objc.IBOutlet()
15 keepWindowOnTopButton = objc.IBOutlet()
16 rememberWindowSizeButton = objc.IBOutlet()
17 rememberWindowLocationButton = objc.IBOutlet()
20 def applicationDidFinishLaunching_(self, sender):
21 NSLog("Application did finish launching.")
22 self.mainWindow.setLevel_(NSFloatingWindowLevel)
23 self.checkAndApplyUserPreferences_(sender)
25 def applicationWillTerminate_(self, sender):
26 NSLog("Application will terminate.")
28 def makeWindowOnTop_(self, sender):
29 self.mainWindow.setLevel_(NSFloatingWindowLevel)
30 NSLog("setting window to float at NSFloatingWindowLevel")
32 def checkAndApplyUserPreferences_(self, sender):
33 NSLog("checkAndApplyUserPreferences_ called")