mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-22 19:21:23 +00:00
compiles without warning cleanup, removed logs, added exceptions * GSWDatabase/WODisplayGroup.h cleanup includes * Examples/WebBookStore1/Main.m removed create and drop tables. * Examples/WebBookStore1/WebBookStore1_main.m adapt to WO naming * Examples/WebBookStore1/Main.gswc -> Main.wo * Examples/WebBookStore1/GNUmakefile updated * Examples/WebBookStore1/Application.h * Examples/WebBookStore1/DirectAction.h * Examples/WebBookStore1/DirectAction.m * Examples/WebBookStore1/Session.h * Examples/WebBookStore1/Main.h WO naming * Examples/WebBookStore1/README new file * Examples/WebBookStore1/BookStore.eomodeld/index.eomodeld added more sample data to connection dictionary * GNUmakefile add GSWDatabase to main project makefile git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30643 72102866-910b-0410-8b05-ffd578937521
35 lines
543 B
Objective-C
35 lines
543 B
Objective-C
#include <EOControl/EOControl.h>
|
|
#include <EOAccess/EOAccess.h>
|
|
|
|
#include <GSWDatabase/WODisplayGroup.h>
|
|
|
|
#include "Main.h"
|
|
|
|
@implementation Main
|
|
|
|
- (void)selectObject
|
|
{
|
|
[authorDG selectObject: author];
|
|
}
|
|
|
|
- (void)saveChanges
|
|
{
|
|
[[[self session] defaultEditingContext] saveChanges];
|
|
}
|
|
|
|
- (void) setAuthorDG:(WODisplayGroup*) dg
|
|
{
|
|
ASSIGN(authorDG, dg);
|
|
}
|
|
|
|
- (void)dealloc
|
|
{
|
|
/* These variables were set via EOKeyValueCoding (KVC) from
|
|
the wod initialization or */
|
|
DESTROY(author);
|
|
DESTROY(authorDG);
|
|
|
|
[super dealloc];
|
|
}
|
|
|
|
@end
|