mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix result type of an NSDocument method, which was incompatible with Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31163 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d94f50de97
commit
b9b154d6bf
3 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
|||
2010-08-16 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSDocument.h:
|
||||
* Source/NSDocument.m: Change result type of method
|
||||
-saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:
|
||||
from BOOL to void. This fixes an incompatibility with Cocoa where
|
||||
this method has no result (as any other method receiving a
|
||||
callback selector).
|
||||
|
||||
2010-08-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextField.m (-selectText:): Add special case to
|
||||
|
|
|
@ -341,11 +341,11 @@ originalContentsURL:(NSURL *)orig
|
|||
ofType:(NSString *)type
|
||||
forSaveOperation:(NSSaveOperationType)op
|
||||
error:(NSError **)error;
|
||||
- (BOOL)saveToURL:(NSURL *)url
|
||||
- (void)saveToURL:(NSURL *)url
|
||||
ofType:(NSString *)type
|
||||
forSaveOperation:(NSSaveOperationType)op
|
||||
delegate:(id)delegate
|
||||
didSaveSelector:(SEL)didSaveSelector
|
||||
didSaveSelector:(SEL)didSaveSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
|
||||
/* Autosaving */
|
||||
|
|
|
@ -1577,7 +1577,7 @@ originalContentsURL: (NSURL *)orig
|
|||
error: error];
|
||||
}
|
||||
|
||||
- (BOOL) saveToURL: (NSURL *)url
|
||||
- (void) saveToURL: (NSURL *)url
|
||||
ofType: (NSString *)type
|
||||
forSaveOperation: (NSSaveOperationType)op
|
||||
delegate: (id)delegate
|
||||
|
@ -1604,8 +1604,6 @@ originalContentsURL: (NSURL *)orig
|
|||
if (meth)
|
||||
meth(delegate, didSaveSelector, self, saved, contextInfo);
|
||||
}
|
||||
|
||||
return saved;
|
||||
}
|
||||
|
||||
- (IBAction) revertDocumentToSaved: (id)sender
|
||||
|
|
Loading…
Reference in a new issue