[Python-checkins] python/dist/src/Mac/OSX/PythonLauncher MyAppDelegate.m,1.1,1.2

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年8月01日 08:07:12 -0700


Update of /cvsroot/python/python/dist/src/Mac/OSX/PythonLauncher
In directory usw-pr-cvs1:/tmp/cvs-serv12870
Modified Files:
	MyAppDelegate.m 
Log Message:
Only show the UI for selecting options if the ALT key was depressed while
dragging or double-clicking the script.
Index: MyAppDelegate.m
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/PythonLauncher/MyAppDelegate.m,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MyAppDelegate.m	29 Jul 2002 21:36:35 -0000	1.1
--- MyAppDelegate.m	1 Aug 2002 15:07:00 -0000	1.2
***************
*** 1,4 ****
--- 1,5 ----
 #import "MyAppDelegate.h"
 #import "PreferencesWindowController.h"
+ #import <Carbon/Carbon.h>
 
 @implementation MyAppDelegate
***************
*** 30,39 ****
 - (BOOL)shouldShowUI
 {
! // if this call comes before applicationDidFinishLaunching: we do not show a UI
! // for the file. Also, we should terminate immedeately after starting the script.
! if (initial_action_done)
! return YES;
 initial_action_done = YES;
! should_terminate = YES;
 return NO;
 }
--- 31,41 ----
 - (BOOL)shouldShowUI
 {
! // if this call comes before applicationDidFinishLaunching: we 
! // should terminate immedeately after starting the script.
! if (!initial_action_done)
! should_terminate = YES;
 initial_action_done = YES;
! if( GetCurrentKeyModifiers() & optionKey )
! return YES;
 return NO;
 }
***************
*** 47,63 ****
 {
 return NO;
- }
- 
- 
- - (BOOL)application:(NSApplication *)sender xx_openFile:(NSString *)filename
- {
- initial_action_done = YES;
- return YES;
- }
- 
- - (BOOL)application:(id)sender xx_openFileWithoutUI:(NSString *)filename
- {
- initial_action_done = YES;
- return YES;
 }
 
--- 49,52 ----

AltStyle によって変換されたページ (->オリジナル) /