Revision: 18417
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18417&view=rev
Author:   hofman
Date:     2012-01-18 12:15:31 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
no need to keep a reference to the document info window controller, it's 
retained when running the sheet

Modified Paths:
--------------
    trunk/bibdesk/BibDocument.h
    trunk/bibdesk/BibDocument.m
    trunk/bibdesk/BibDocument_Actions.m

Modified: trunk/bibdesk/BibDocument.h
===================================================================
--- trunk/bibdesk/BibDocument.h 2012-01-18 11:01:14 UTC (rev 18416)
+++ trunk/bibdesk/BibDocument.h 2012-01-18 12:15:31 UTC (rev 18417)
@@ -207,7 +207,6 @@
     BDSKMacroWindowController *macroWC;
        
     NSDictionary *documentInfo;
-    BDSKDocumentInfoWindowController *infoWC;
     
        NSString *frontMatter;    // for preambles, and stuff
        

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2012-01-18 11:01:14 UTC (rev 18416)
+++ trunk/bibdesk/BibDocument.m 2012-01-18 12:15:31 UTC (rev 18417)
@@ -237,7 +237,6 @@
         fileSearchController = nil;
         drawerController = nil;
         macroWC = nil;
-        infoWC = nil;
         previewer = nil;
         toolbarItems = nil;
         docState.lastPreviewHeight = 0.0;
@@ -310,7 +309,6 @@
     BDSKDESTROY(bottomPreviewDisplayTemplate);
     BDSKDESTROY(sidePreviewDisplayTemplate);
     BDSKDESTROY(macroWC);
-    BDSKDESTROY(infoWC);
     BDSKDESTROY(tableColumnWidths);
     BDSKDESTROY(sortKey);
     BDSKDESTROY(previousSortKey);

Modified: trunk/bibdesk/BibDocument_Actions.m
===================================================================
--- trunk/bibdesk/BibDocument_Actions.m 2012-01-18 11:01:14 UTC (rev 18416)
+++ trunk/bibdesk/BibDocument_Actions.m 2012-01-18 12:15:31 UTC (rev 18417)
@@ -1387,9 +1387,7 @@
 }
 
 - (IBAction)showDocumentInfoWindow:(id)sender{
-    if (!infoWC) {
-        infoWC = [(BDSKDocumentInfoWindowController 
*)[BDSKDocumentInfoWindowController alloc] initWithDocument:self];
-    }
+    BDSKDocumentInfoWindowController *infoWC = 
[[(BDSKDocumentInfoWindowController *)[BDSKDocumentInfoWindowController alloc] 
initWithDocument:self] autorelease];
     [infoWC beginSheetModalForWindow:documentWindow];
 }
 

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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to