Revision: 18427
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18427&view=rev
Author: hofman
Date: 2012-01-19 12:45:50 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
No need to make sheet callback public
Modified Paths:
--------------
trunk/bibdesk/NSWindowController_BDSKExtensions.h
trunk/bibdesk/NSWindowController_BDSKExtensions.m
Modified: trunk/bibdesk/NSWindowController_BDSKExtensions.h
===================================================================
--- trunk/bibdesk/NSWindowController_BDSKExtensions.h 2012-01-19 12:43:51 UTC
(rev 18426)
+++ trunk/bibdesk/NSWindowController_BDSKExtensions.h 2012-01-19 12:45:50 UTC
(rev 18427)
@@ -52,6 +52,5 @@
- (void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:(id)delegate
didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo;
- (IBAction)dismiss:(id)sender;
-- (void)didEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode
contextInfo:(void *)contextInfo;
@end
Modified: trunk/bibdesk/NSWindowController_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSWindowController_BDSKExtensions.m 2012-01-19 12:43:51 UTC
(rev 18426)
+++ trunk/bibdesk/NSWindowController_BDSKExtensions.m 2012-01-19 12:45:50 UTC
(rev 18427)
@@ -93,6 +93,14 @@
#pragma mark Sheet methods
+- (void)didEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode
contextInfo:(void *)contextInfo {
+ NSInvocation *invocation = [(NSInvocation *)contextInfo autorelease];
+ if (invocation) {
+ [invocation setArgument:&returnCode atIndex:3];
+ [invocation invoke];
+ }
+}
+
- (void)beginSheetModalForWindow:(NSWindow *)window {
[self beginSheetModalForWindow:window modalDelegate:nil
didEndSelector:NULL contextInfo:NULL];
}
@@ -120,14 +128,6 @@
[self autorelease];
}
-- (void)didEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode
contextInfo:(void *)contextInfo {
- NSInvocation *invocation = [(NSInvocation *)contextInfo autorelease];
- if (invocation) {
- [invocation setArgument:&returnCode atIndex:3];
- [invocation invoke];
- }
-}
-
@end
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