mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +00:00
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:
parent
4a710daca9
commit
6cfee381c1
4 changed files with 572 additions and 314 deletions
10
ChangeLog
10
ChangeLog
|
@ -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>
|
2008-12-21 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Version 0.16.0
|
* Version 0.16.0
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
@class NSOpenPanel;
|
@class NSOpenPanel;
|
||||||
@class NSWindow;
|
@class NSWindow;
|
||||||
|
|
||||||
@interface NSDocumentController : NSObject
|
@interface NSDocumentController : NSObject <NSCoding>
|
||||||
{
|
{
|
||||||
@private
|
@private
|
||||||
NSMutableArray *_documents;
|
NSMutableArray *_documents;
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
- (IBAction)newDocument:(id)sender;
|
- (IBAction)newDocument:(id)sender;
|
||||||
- (IBAction)clearRecentDocuments:(id)sender;
|
- (IBAction)clearRecentDocuments:(id)sender;
|
||||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
|
||||||
- (unsigned int) maximumRecentDocumentCount;
|
- (NSUInteger) maximumRecentDocumentCount;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*" Recent Documents "*/
|
/*" Recent Documents "*/
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
/*" Open panel "*/
|
/*" Open panel "*/
|
||||||
- (NSArray *)URLsFromRunningOpenPanel;
|
- (NSArray *)URLsFromRunningOpenPanel;
|
||||||
- (NSArray *)fileNamesFromRunningOpenPanel;
|
- (NSArray *)fileNamesFromRunningOpenPanel;
|
||||||
- (int)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray *)openableFileExtensions;
|
- (NSInteger)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray *)openableFileExtensions;
|
||||||
|
|
||||||
/*" Document management "*/
|
/*" Document management "*/
|
||||||
- (void)addDocument:(NSDocument *)document;
|
- (void)addDocument:(NSDocument *)document;
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
#import <GNUstepBase/GSVersionMacros.h>
|
#import <GNUstepBase/GSVersionMacros.h>
|
||||||
|
|
||||||
#include <Foundation/NSObject.h>
|
#include <Foundation/NSObject.h>
|
||||||
|
#include <AppKit/NSUserInterfaceValidation.h>
|
||||||
|
|
||||||
@class NSAttributedString;
|
@class NSAttributedString;
|
||||||
@class NSString;
|
@class NSString;
|
||||||
|
@ -367,7 +368,7 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSMenuItem : NSObject <NSMenuItem>
|
@interface NSMenuItem : NSObject <NSMenuItem, NSValidatedUserInterfaceItem>
|
||||||
{
|
{
|
||||||
NSMenu *_menu;
|
NSMenu *_menu;
|
||||||
NSString *_title;
|
NSString *_title;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue