Revision: 4469
http://skim-app.svn.sourceforge.net/skim-app/?rev=4469&view=rev
Author: hofman
Date: 2008-08-28 18:33:02 +0000 (Thu, 28 Aug 2008)
Log Message:
-----------
Set nib name for main window in windowcontroller init. Use simple init.
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKPDFDocument.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-08-28 18:29:52 UTC (rev 4468)
+++ trunk/SKMainWindowController.m 2008-08-28 18:33:02 UTC (rev 4469)
@@ -224,10 +224,8 @@
return [super automaticallyNotifiesObserversForKey:key];
}
-- (id)initWithWindowNibName:(NSString *)windowNibName owner:(id)owner{
- self = [super initWithWindowNibName:windowNibName owner:owner];
- if(self){
- [self setShouldCloseDocument:YES];
+- (id)init {
+ if (self = [super initWithWindowNibName:@"MainWindow"]) {
isPresentation = NO;
searchResults = [[NSMutableArray alloc] init];
findPanelFind = NO;
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-08-28 18:29:52 UTC (rev 4468)
+++ trunk/SKPDFDocument.m 2008-08-28 18:33:02 UTC (rev 4469)
@@ -131,7 +131,7 @@
}
- (void)makeWindowControllers{
- SKMainWindowController *mainWindowController = [[[SKMainWindowController
alloc] initWithWindowNibName:@"MainWindow"] autorelease];
+ SKMainWindowController *mainWindowController = [[[SKMainWindowController
alloc] init] autorelease];
[mainWindowController setShouldCloseDocument:YES];
[self addWindowController:mainWindowController];
}
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