* Headers/AppKit/NSDocumentController.h,

* Source/NSDocumentController.m: Add 10.7 methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39978 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2016-07-12 08:41:17 +00:00
parent 2b2964043a
commit 28b1b39b7b
3 changed files with 214 additions and 0 deletions

View file

@ -106,6 +106,31 @@
contextInfo: (void*)context;
- (NSError*) willPresentError: (NSError*)err;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
DEFINE_BLOCK_TYPE(GSCompletionBlock1, void, NSDocument*, BOOL, NSError*);
DEFINE_BLOCK_TYPE(GSCompletionBlock2, void, NSArray*);
- (id) duplicateDocumentWithContentsOfURL: (NSURL*)url
copying: (BOOL)duplicateByCopying
displayName: (NSString*)displayNameOrNil
error: (NSError**)outError;
- (void) openDocumentWithContentsOfURL: (NSURL*)url
display: (BOOL)displayDocument
completionHandler: (GSCompletionBlock1)completionHandler;
- (void) reopenDocumentForURL: (NSURL*)urlOrNil
withContentsOfURL: (NSURL*)contentsURL
display: (BOOL)displayDocument
completionHandler: (GSCompletionBlock1)completionHandler;
- (void) beginOpenPanelWithCompletionHandler: (GSCompletionBlock2)completionHandler;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
DEFINE_BLOCK_TYPE(GSCompletionBlock3, void, NSInteger);
- (void) beginOpenPanel: (NSOpenPanel*)openPanel
forTypes: (NSArray*)inTypes
completionHandler: (GSCompletionBlock3)completionHandler;
#endif
/*" With or without UI "*/
- (BOOL) shouldCreateUI;