From: <ho...@us...> - 2009-06-23 23:15:28
|
Revision: 5448 http://skim-app.svn.sourceforge.net/skim-app/?rev=5448&view=rev Author: hofman Date: 2009-06-23 23:15:24 +0000 (Tue, 23 Jun 2009) Log Message: ----------- need to pass return code argument later Modified Paths: -------------- trunk/SKSheetController.m Modified: trunk/SKSheetController.m =================================================================== --- trunk/SKSheetController.m 2009-06-23 23:12:19 UTC (rev 5447) +++ trunk/SKSheetController.m 2009-06-23 23:15:24 UTC (rev 5448) @@ -48,7 +48,6 @@ NSInvocation *invocation = nil; if (delegate != nil && didEndSelector != NULL) { invocation = [NSInvocation invocationWithTarget:delegate selector:didEndSelector argument:&self]; - [invocation setArgument:&returnCode atIndex:3]; [invocation setArgument:&contextInfo atIndex:4]; } @@ -70,8 +69,10 @@ - (void)didEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo { NSInvocation *invocation = [(NSInvocation *)contextInfo autorelease]; - if (invocation) + if (invocation) { + [invocation setArgument:&returnCode atIndex:3]; [invocation invoke]; + } } - (void)endSheetWithReturnCode:(NSInteger)returnCode { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |