mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 01:01:19 +00:00
2001-12-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWResourceManager.m: logs * GSWeb.framework/GSWDefaultAdaptorThread.m: logs corrected bug in response writing * GSWeb.framework/GSWApplication.m: logs * GSWAdaptors/common/GSWHTTPResponse.c: logs * added Example/hello 'application' git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
95068eec21
commit
ae58cc295f
25 changed files with 664 additions and 182 deletions
54
Examples/hello/Main.m
Normal file
54
Examples/hello/Main.m
Normal file
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Main.m
|
||||
*
|
||||
* You may freely copy, distribute and reuse the code in this example.
|
||||
* Apple disclaims any warranty of any kind, expressed or implied, as to
|
||||
* its fitness for any particular use.
|
||||
*
|
||||
* Written by WebObjects Development Team
|
||||
*
|
||||
* This is the implementation file for the object that controls the Main
|
||||
* page.
|
||||
*/
|
||||
|
||||
#import "Main.h"
|
||||
#import "Hello.h"
|
||||
#import "HelloPage.h"
|
||||
|
||||
@implementation Main
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
DESTROY(nameString);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (GSWComponent *)sayHello
|
||||
{
|
||||
HelloPage *nextPage= (HelloPage*)[self pageWithName:@"HelloPage"];
|
||||
// Here we are using the EOKeyValueCodingProtocol to set 'nameString' in the Hello page
|
||||
// The alternative would be to implement the accessor method 'setNameString:'
|
||||
// [nextPage takeValue:nameString forKey:@"nameString"];
|
||||
[nextPage setNameString:nameString];
|
||||
return nextPage;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface Session:GSWSession
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface Application:GSWApplication
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation Session
|
||||
@end
|
||||
|
||||
@implementation Application
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue