Revision: 7070
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7070&view=rev
Author:   hofman
Date:     2011-01-12 13:39:54 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
rename method and enum values for open/save panels

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2011-01-11 15:30:32 UTC (rev 7069)
+++ trunk/SKMainDocument.m      2011-01-12 13:39:54 UTC (rev 7070)
@@ -918,8 +918,8 @@
         NSBeep();
 }
 
-- (void)openPanelDidEnd:(NSOpenPanel *)oPanel returnCode:(NSInteger)returnCode 
contextInfo:(void *)contextInfo {
-    if (returnCode == NSOKButton) {
+- (void)readNotesPanelDidEnd:(NSOpenPanel *)oPanel 
returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo {
+    if (returnCode == NSFileHandlingPanelOKButton) {
         NSURL *notesURL = [[oPanel URLs] objectAtIndex:0];
         BOOL replace = ([[oPanel accessoryView] 
isEqual:readNotesAccessoryView] && [replaceNotesCheckButton state] == 
NSOnState);
         [self readNotesFromURL:notesURL replace:replace];
@@ -949,7 +949,7 @@
                              types:[NSArray arrayWithObjects:@"skim", @"fdf", 
nil]
                     modalForWindow:[self windowForSheet]
                      modalDelegate:self
-                    
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
+                    
didEndSelector:@selector(readNotesPanelDidEnd:returnCode:contextInfo:)
                        contextInfo:NULL];              
 }
 
@@ -1075,7 +1075,7 @@
 }
 
 - (void)archiveSavePanelDidEnd:(NSSavePanel *)sheet 
returnCode:(NSInteger)returnCode  contextInfo:(void  *)contextInfo {
-    if (NSOKButton == returnCode && [self fileURL])
+    if (NSFileHandlingPanelOKButton == returnCode && [self fileURL])
         [self saveArchiveToFile:[sheet filename]];
 }
 
@@ -1202,7 +1202,7 @@
 }
 
 - (void)diskImageSavePanelDidEnd:(NSSavePanel *)sheet 
returnCode:(NSInteger)returnCode  contextInfo:(void  *)contextInfo {
-    if (NSOKButton == returnCode && [self fileURL])
+    if (NSFileHandlingPanelOKButton == returnCode && [self fileURL])
         [self saveDiskImageToFile:[sheet filename] email:NO];
 }
 


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to