mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-23 11:41:20 +00:00
* GSWeb.framework/GSWApplication.m: Fix compile with debug=no. * GSWeb.framework/GSWeb.h: Include GNUstep.h if GNUSTEP is not defined for OS X. * GSWExtensions.framework/GSWExtWOCompatibility.h: Ditto. * GSWExtensionsGSW.framework/GSWExtGSWWOCompatibility.h: * Ditto. * Examples/hello/*.m: Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@17192 72102866-910b-0410-8b05-ffd578937521
56 lines
1 KiB
Objective-C
56 lines
1 KiB
Objective-C
/*
|
|
* Main.m
|
|
*
|
|
* You may freely copy, distribute and reuse the code in this example.
|
|
* We disclaims any warranty of any kind, expressed or implied, as to
|
|
* its fitness for any particular use.
|
|
*
|
|
* This is the implementation file for the object that controls the Main
|
|
* page.
|
|
*/
|
|
|
|
#ifndef GNUSTEP
|
|
#include <gnsutep/base/GNUstep.h>
|
|
#endif
|
|
|
|
#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
|