mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-22 15:00:45 +00:00
add DirectAction to avoid error messages * GSWeb.framework/GSWEmbeddedObject.m include NSObject+GNUstepBase.h * GSWeb.framework/GSWConfig.h remove GSWOPTVALUE_AcceptedContentEncoding * GSWeb.framework/GSWResponse.h remove acceptedEncodings add + compressableContentTypes add + setCompressableContentTypes: remove usesless @interface/@end * GSWeb.framework/GSWResponse.m add compressableContentTypesCache add + compressableContentTypes add + setCompressableContentTypes: remove acceptedEncodings remove usesless @implementation/@end add _browserSupportsCompression: refactor _finalizeContentEncodingInContext: * GSWeb.framework/GSWConstants.h * GSWeb.framework/GSWConstants.m remove GSWOPT_AcceptedContentEncoding * GSWeb.framework/GSWComponent.m do not call setAcceptedEncodings on response. * GSWeb.framework/GSWApplication.h * GSWeb.framework/GSWApplication+Defaults.m remove + acceptedContentEncoding remove + acceptedContentEncodingArray remove + setAcceptedContentEncoding: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30697 72102866-910b-0410-8b05-ffd578937521
66 lines
975 B
Objective-C
66 lines
975 B
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 <GNUstepBase/GNUstep.h>
|
|
#endif
|
|
|
|
#include "Main.h"
|
|
#include "Hello.h"
|
|
#include "HelloPage.h"
|
|
|
|
@implementation Main
|
|
|
|
- (void)dealloc
|
|
{
|
|
DESTROY(nameString);
|
|
[super dealloc];
|
|
}
|
|
|
|
- (WOComponent *)sayHello
|
|
{
|
|
HelloPage *nextPage = (HelloPage*)[self pageWithName:@"HelloPage"];
|
|
[nextPage setNameString:nameString];
|
|
|
|
return nextPage;
|
|
}
|
|
|
|
@end
|
|
|
|
/*
|
|
* in an real world application you should move these to separate files.
|
|
*/
|
|
|
|
@interface Session:WOSession
|
|
{
|
|
}
|
|
|
|
@end
|
|
|
|
@interface Application:WOApplication
|
|
{
|
|
}
|
|
|
|
@end
|
|
|
|
@interface DirectAction:WODirectAction
|
|
{
|
|
}
|
|
@end
|
|
|
|
@implementation Session
|
|
@end
|
|
|
|
@implementation Application
|
|
@end
|
|
|
|
@implementation DirectAction
|
|
@end
|