Revision: 4320
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4320&view=rev
Author:   hofman
Date:     2008-07-28 23:16:12 +0000 (Mon, 28 Jul 2008)

Log Message:
-----------
Don't try reopening last open files when re-activating the app.

Modified Paths:
--------------
    trunk/SKApplicationController.m

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2008-07-28 12:12:39 UTC (rev 4319)
+++ trunk/SKApplicationController.m     2008-07-28 23:16:12 UTC (rev 4320)
@@ -147,7 +147,7 @@
 
 #pragma mark NSApplication delegate
 
-- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender{
+- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender{log_method();
     
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKReopenLastOpenFilesKey]) {
         NSArray *files = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKLastOpenFileNamesKey];
@@ -210,6 +210,11 @@
     remoteControl = container;
 }
 
+// we don't want to reopen last open files when re-activating the app
+- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication 
hasVisibleWindows:(BOOL)flag {
+    return NO;
+}
+
 - (void)applicationDidBecomeActive:(NSNotification *)aNotification {
     [remoteControl startListening:self];
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to