Revision: 6455
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6455&view=rev
Author:   hofman
Date:     2010-04-09 11:22:37 +0000 (Fri, 09 Apr 2010)

Log Message:
-----------
pass window to setup toolbar

Modified Paths:
--------------
    trunk/SKNotesDocument.h
    trunk/SKNotesDocument.m

Modified: trunk/SKNotesDocument.h
===================================================================
--- trunk/SKNotesDocument.h     2010-04-09 11:14:35 UTC (rev 6454)
+++ trunk/SKNotesDocument.h     2010-04-09 11:22:37 UTC (rev 6455)
@@ -68,6 +68,6 @@
 - (IBAction)toggleStatusBar:(id)sender;
 - (IBAction)toggleCaseInsensitiveSearch:(id)sender;
  
-- (void)setupToolbar:(NSWindowController *)aController;
+- (void)setupToolbarForWindow:(NSWindow *)aWindow;
 
 @end

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2010-04-09 11:14:35 UTC (rev 6454)
+++ trunk/SKNotesDocument.m     2010-04-09 11:22:37 UTC (rev 6455)
@@ -121,7 +121,7 @@
 - (void)windowControllerDidLoadNib:(NSWindowController *)aController {
     [aController setShouldCloseDocument:YES];
     
-    [self setupToolbar:aController];
+    [self setupToolbarForWindow:[aController window]];
     
     [aController 
setWindowFrameAutosaveNameOrCascade:SKNotesDocumentWindowFrameAutosaveName];
     
@@ -643,7 +643,7 @@
 
 #pragma mark Toolbar
 
-- (void)setupToolbar:(NSWindowController *)aController {
+- (void)setupToolbarForWindow:(NSWindow *)aWindow {
     // Create a new toolbar instance, and attach it to our document window
     NSToolbar *toolbar = [[[NSToolbar alloc] 
initWithIdentifier:SKNotesDocumentToolbarIdentifier] autorelease];
     SKToolbarItem *item;
@@ -681,7 +681,7 @@
     [item release];
     
     // Attach the toolbar to the window
-    [[aController window] setToolbar:toolbar];
+    [aWindow setToolbar:toolbar];
 }
 
 - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar 
itemForItemIdentifier:(NSString *)itemIdent 
willBeInsertedIntoToolbar:(BOOL)willBeInserted {


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to