Separate the server methods out into a category.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@29510 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-02-08 12:10:38 +00:00
parent e296fcf111
commit 2007e57535
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2010-02-08 07:13-EST Gregory John Casamento <greg.casamento@gmail.com>
* Gorm.m: Separate out the server methods into a category.
2010-02-08 06:46-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GormServer.h: Added deleteClass: method

10
Gorm.m
View file

@ -36,7 +36,7 @@
#include <GNUstepBase/GSObjCRuntime.h>
#include <GormPrefs/GormPrefController.h>
@interface Gorm : NSApplication <IB, Gorm, GormServer>
@interface Gorm : NSApplication <IB, Gorm>
{
GormPrefController *preferencesController;
GormClassManager *classManager;
@ -70,6 +70,10 @@
- (void) handleNotification: (NSNotification*)aNotification;
@end
// Handle server protocol methods...
@interface Gorm (GormServer) <GormServer>
@end
@implementation Gorm
- (id<IBDocuments>) activeDocument
@ -1299,8 +1303,10 @@
{
[[self keyWindow] print: sender];
}
@end
// Method to support external apps adding and deleting
@implementation Gorm (GormServer)
// Methods to support external apps adding and deleting
// classes from the current document...
- (void) addClass: (NSDictionary *) dict
{