Revision: 4477
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4477&view=rev
Author:   hofman
Date:     2008-08-29 17:12:51 +0000 (Fri, 29 Aug 2008)

Log Message:
-----------
Use initWithWindowNibName to initialize some window controller subclasses.

Modified Paths:
--------------
    trunk/SKNoteWindowController.m
    trunk/SKTransitionController.m

Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m      2008-08-29 17:09:53 UTC (rev 4476)
+++ trunk/SKNoteWindowController.m      2008-08-29 17:12:51 UTC (rev 4477)
@@ -100,7 +100,7 @@
 }
 
 - (id)initWithNote:(PDFAnnotation *)aNote {
-    if (self = [super init]) {
+    if (self = [super initWithWindowNibName:@"NoteWindow"]) {
         note = [aNote retain];
         
         keepOnTop = [[NSUserDefaults standardUserDefaults] 
boolForKey:SKKeepNoteWindowsOnTopKey];
@@ -127,10 +127,6 @@
     [super dealloc];
 }
 
-- (NSString *)windowNibName {
-    return @"NoteWindow";
-}
-
 - (void)updateStatusMessage {
     NSRect bounds = [note bounds];
     [statusBar setLeftStringValue:[NSString 
stringWithFormat:NSLocalizedString(@"Page %@ at (%i, %i)", @"Status message"), 
[[note page] displayLabel], (int)NSMidX(bounds), (int)NSMidY(bounds)]];

Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m      2008-08-29 17:09:53 UTC (rev 4476)
+++ trunk/SKTransitionController.m      2008-08-29 17:12:51 UTC (rev 4477)
@@ -137,7 +137,7 @@
 }
 
 - (id)initWithView:(NSView *)aView {
-    if (self = [super init]) {
+    if (self = [super initWithWindowNibName:@"TransitionSheet"]) {
         view = aView; // don't retain as it may retain us
         transitionStyle = SKNoTransition;
         duration = 1.0;
@@ -152,8 +152,6 @@
     [super dealloc];
 }
 
-- (NSString *)windowNibName { return @"TransitionSheet"; }
-
 - (void)windowDidLoad {
     NSArray *filterNames = [[self class] transitionFilterNames];
     int i, count = [filterNames count];


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