Revision: 5681
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5681&view=rev
Author:   amaxwell
Date:     2009-09-05 01:02:56 +0000 (Sat, 05 Sep 2009)

Log Message:
-----------
retain invocation instead of method signature

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2009-09-04 22:50:52 UTC (rev 5680)
+++ trunk/SKMainDocument.m      2009-09-05 01:02:56 UTC (rev 5681)
@@ -319,11 +319,12 @@
     
     NSInvocation *invocation = nil;
     if (delegate && didSaveSelector) {
-        NSMethodSignature *ms = [[delegate 
methodSignatureForSelector:didSaveSelector] retain];
-        invocation = [NSInvocation invocationWithMethodSignature:ms];
+        NSMethodSignature *ms = [delegate 
methodSignatureForSelector:didSaveSelector];
+        invocation = [[NSInvocation invocationWithMethodSignature:ms] retain];
         [invocation setTarget:delegate];
         [invocation setSelector:didSaveSelector];
         [invocation setArgument:&contextInfo atIndex:4];
+        [invocation retainArguments];
     }
     
     [super runModalSavePanelForSaveOperation:saveOperation delegate:self 
didSaveSelector:@selector(document:didSave:contextInfo:) contextInfo:NULL];


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to