mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
e296fcf111
commit
2007e57535
2 changed files with 12 additions and 2 deletions
|
@ -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>
|
2010-02-08 06:46-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* GormCore/GormServer.h: Added deleteClass: method
|
* GormCore/GormServer.h: Added deleteClass: method
|
||||||
|
|
10
Gorm.m
10
Gorm.m
|
@ -36,7 +36,7 @@
|
||||||
#include <GNUstepBase/GSObjCRuntime.h>
|
#include <GNUstepBase/GSObjCRuntime.h>
|
||||||
#include <GormPrefs/GormPrefController.h>
|
#include <GormPrefs/GormPrefController.h>
|
||||||
|
|
||||||
@interface Gorm : NSApplication <IB, Gorm, GormServer>
|
@interface Gorm : NSApplication <IB, Gorm>
|
||||||
{
|
{
|
||||||
GormPrefController *preferencesController;
|
GormPrefController *preferencesController;
|
||||||
GormClassManager *classManager;
|
GormClassManager *classManager;
|
||||||
|
@ -70,6 +70,10 @@
|
||||||
- (void) handleNotification: (NSNotification*)aNotification;
|
- (void) handleNotification: (NSNotification*)aNotification;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// Handle server protocol methods...
|
||||||
|
@interface Gorm (GormServer) <GormServer>
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation Gorm
|
@implementation Gorm
|
||||||
|
|
||||||
- (id<IBDocuments>) activeDocument
|
- (id<IBDocuments>) activeDocument
|
||||||
|
@ -1299,8 +1303,10 @@
|
||||||
{
|
{
|
||||||
[[self keyWindow] print: sender];
|
[[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...
|
// classes from the current document...
|
||||||
- (void) addClass: (NSDictionary *) dict
|
- (void) addClass: (NSDictionary *) dict
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue