Revision: 7546
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7546&view=rev
Author:   hofman
Date:     2011-11-23 15:36:49 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
don't set invocation argument in initializer

Modified Paths:
--------------
    trunk/NSWindowController_SKExtensions.m
    trunk/SKMainWindowController_UI.m
    trunk/SKNoteWindowController.m

Modified: trunk/NSWindowController_SKExtensions.m
===================================================================
--- trunk/NSWindowController_SKExtensions.m     2011-11-23 11:13:21 UTC (rev 
7545)
+++ trunk/NSWindowController_SKExtensions.m     2011-11-23 15:36:49 UTC (rev 
7546)
@@ -82,7 +82,8 @@
 - (void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:(id)delegate 
didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo {
     NSInvocation *invocation = nil;
     if (delegate != nil && didEndSelector != NULL) {
-        invocation = [NSInvocation invocationWithTarget:delegate 
selector:didEndSelector argument:&self];
+        invocation = [NSInvocation invocationWithTarget:delegate 
selector:didEndSelector];
+               [invocation setArgument:&self atIndex:2];
                [invocation setArgument:&contextInfo atIndex:4];
        }
     

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2011-11-23 11:13:21 UTC (rev 7545)
+++ trunk/SKMainWindowController_UI.m   2011-11-23 15:36:49 UTC (rev 7546)
@@ -1150,7 +1150,8 @@
     BOOL didCommit = [self commitEditing];
     if (delegate && didCommitSelector) {
         // - (void)editor:(id)editor didCommit:(BOOL)didCommit 
contextInfo:(void *)contextInfo
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector];
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&didCommit atIndex:3];
         [invocation setArgument:&contextInfo atIndex:4];
         [invocation invoke];

Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m      2011-11-23 11:13:21 UTC (rev 7545)
+++ trunk/SKNoteWindowController.m      2011-11-23 15:36:49 UTC (rev 7546)
@@ -316,7 +316,8 @@
 
 - (void)commitEditingWithDelegate:(id)delegate 
didCommitSelector:(SEL)didCommitSelector contextInfo:(void *)contextInfo {
     if (delegate && didCommitSelector) {
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector];
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&contextInfo atIndex:4];
         return [noteController commitEditingWithDelegate:self 
didCommitSelector:@selector(editor:didCommit:contextInfo:) 
contextInfo:[invocation retain]];
     }

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to