#NEWLINE# def install( ) : #NEWLINE# #INDENT# app = NSApplication . sharedApplication ( ) #NEWLINE# appDelegate = SDLAppDelegate . alloc ( ) . init ( ) #NEWLINE# app . setDelegate_ ( appDelegate ) #NEWLINE# appDelegate . retain ( ) #NEWLINE# NSNotificationCenter . defaultCenter ( ) . addObserver_selector_name_object_ ( appDelegate , 'windowUpdateNotification:' , NSWindowDidUpdateNotification , None ) #NEWLINE# if ( not app . mainMenu ( ) ) : #NEWLINE# #INDENT# mainMenu = NSMenu . alloc ( ) . init ( ) #NEWLINE# app . setMainMenu_ ( mainMenu ) #NEWLINE# setupAppleMenu ( app ) #NEWLINE# setupWindowMenu ( app ) #NEWLINE# #UNINDENT# app . finishLaunching ( ) #NEWLINE# app . updateWindows ( ) #NEWLINE# app . activateIgnoringOtherApps_ ( True )