Revision: 5208
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5208&view=rev
Author:   hofman
Date:     2009-02-12 12:08:57 +0000 (Thu, 12 Feb 2009)

Log Message:
-----------
create statusbar in notes document window programmattically

Modified Paths:
--------------
    trunk/NotesDocument.nib/keyedobjects.nib
    trunk/SKNotesDocument.m

Modified: trunk/NotesDocument.nib/keyedobjects.nib
===================================================================
(Binary files differ)

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2009-02-12 12:02:45 UTC (rev 5207)
+++ trunk/SKNotesDocument.m     2009-02-12 12:08:57 UTC (rev 5208)
@@ -112,7 +112,7 @@
     [aController 
setWindowFrameAutosaveNameOrCascade:SKNotesDocumentWindowFrameAutosaveName];
     
     [statusBar retain];
-    if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKShowNotesStatusBarKey] == NO)
+    if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKShowNotesStatusBarKey])
         [self toggleStatusBar:nil];
     
     NSMenu *menu = [[[NSMenu allocWithZone:[NSMenu menuZone]] init] 
autorelease];
@@ -329,6 +329,10 @@
 }
 
 - (IBAction)toggleStatusBar:(id)sender {
+    if (statusBar == nil) {
+        statusBar = [[SKStatusBar alloc] initWithFrame:NSMakeRect(0.0, 0.0, 
NSWidth([splitView frame]), 22.0)];
+        [statusBar setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin];
+    }
     [statusBar toggleBelowView:[outlineView enclosingScrollView] offset:1.0];
     [[NSUserDefaults standardUserDefaults] setBool:[statusBar isVisible] 
forKey:SKShowNotesStatusBarKey];
 }


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

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to