Revision: 4527
http://skim-app.svn.sourceforge.net/skim-app/?rev=4527&view=rev
Author: hofman
Date: 2008-09-03 11:49:21 +0000 (Wed, 03 Sep 2008)
Log Message:
-----------
Add dummy implementation for setInitialSetup: to NSDocument category, and
override in the PDF document class to pass it on o the main window controller.
Modified Paths:
--------------
trunk/NSDocument_SKExtensions.h
trunk/NSDocument_SKExtensions.m
trunk/SKDocumentController.m
trunk/SKPDFDocument.h
trunk/SKPDFDocument.m
Modified: trunk/NSDocument_SKExtensions.h
===================================================================
--- trunk/NSDocument_SKExtensions.h 2008-09-02 20:04:52 UTC (rev 4526)
+++ trunk/NSDocument_SKExtensions.h 2008-09-03 11:49:21 UTC (rev 4527)
@@ -51,5 +51,6 @@
- (NSFileWrapper *)notesRTFDFileWrapper;
- (void)saveRecentDocumentInfo;
+- (void)setInitialSetup:(NSDictionary *)setup;
@end
Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m 2008-09-02 20:04:52 UTC (rev 4526)
+++ trunk/NSDocument_SKExtensions.m 2008-09-03 11:49:21 UTC (rev 4527)
@@ -104,4 +104,6 @@
- (void)saveRecentDocumentInfo {}
+- (void)setInitialSetup:(NSDictionary *)setup {}
+
@end
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2008-09-02 20:04:52 UTC (rev 4526)
+++ trunk/SKDocumentController.m 2008-09-03 11:49:21 UTC (rev 4527)
@@ -381,8 +381,7 @@
if(fileURL && NO == SKFileIsInTrash(fileURL)) {
if (document = [[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfURL:fileURL display:NO error:&error]) {
[document makeWindowControllers];
- if ([document respondsToSelector:@selector(mainWindowController)])
- [[document mainWindowController] setInitialSetup:setup];
+ [document setInitialSetup:setup];
[document showWindows];
} else if (outError) {
*outError = error;
Modified: trunk/SKPDFDocument.h
===================================================================
--- trunk/SKPDFDocument.h 2008-09-02 20:04:52 UTC (rev 4526)
+++ trunk/SKPDFDocument.h 2008-09-03 11:49:21 UTC (rev 4527)
@@ -112,6 +112,8 @@
- (NSDictionary *)currentDocumentSetup;
+- (void)setInitialSetup:(NSDictionary *)setup;
+
- (SKPDFSynchronizer *)synchronizer;
- (NSArray *)snapshots;
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-09-02 20:04:52 UTC (rev 4526)
+++ trunk/SKPDFDocument.m 2008-09-03 11:49:21 UTC (rev 4527)
@@ -1518,6 +1518,10 @@
return setup;
}
+- (void)setInitialSetup:(NSDictionary *)setup {
+ [[self mainWindowController] setInitialSetup:setup];
+}
+
- (void)findString:(NSString *)string options:(int)options{
[[self mainWindowController] findString:string options:options];
}
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