Clean up and completion of NSDocumentController.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27415 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-12-25 13:21:22 +00:00
parent fef23286b2
commit f68f306f43
4 changed files with 572 additions and 314 deletions

View file

@ -1,3 +1,13 @@
2008-12-25 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSMenuItem.h: Declare to implement interface
NSValidatedUserInterfaceItem.
* Headers/AppKit/NSDocumentController.h: Change to use NSUInteger and
NSInteger.
* Source/NSDocumentController.m: Implement all Cocoa methods of this
class and clean up the rest of the implementation.
Partly using code by Nikolaus Schaller <hns@computer.org>.
2008-12-21 Adam Fedor <fedor@gnu.org>
* Version 0.16.0

View file

@ -48,7 +48,7 @@
@class NSOpenPanel;
@class NSWindow;
@interface NSDocumentController : NSObject
@interface NSDocumentController : NSObject <NSCoding>
{
@private
NSMutableArray *_documents;
@ -111,7 +111,7 @@
- (IBAction)newDocument:(id)sender;
- (IBAction)clearRecentDocuments:(id)sender;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
- (unsigned int) maximumRecentDocumentCount;
- (NSUInteger) maximumRecentDocumentCount;
#endif
/*" Recent Documents "*/
@ -122,7 +122,7 @@
/*" Open panel "*/
- (NSArray *)URLsFromRunningOpenPanel;
- (NSArray *)fileNamesFromRunningOpenPanel;
- (int)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray *)openableFileExtensions;
- (NSInteger)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray *)openableFileExtensions;
/*" Document management "*/
- (void)addDocument:(NSDocument *)document;

View file

@ -35,6 +35,7 @@
#import <GNUstepBase/GSVersionMacros.h>
#include <Foundation/NSObject.h>
#include <AppKit/NSUserInterfaceValidation.h>
@class NSAttributedString;
@class NSString;
@ -367,7 +368,7 @@
@end
@interface NSMenuItem : NSObject <NSMenuItem>
@interface NSMenuItem : NSObject <NSMenuItem, NSValidatedUserInterfaceItem>
{
NSMenu *_menu;
NSString *_title;

File diff suppressed because it is too large Load diff