2001-12-11 14:35:30 +00:00
|
|
|
/*
|
|
|
|
* Main.m
|
|
|
|
*
|
|
|
|
* You may freely copy, distribute and reuse the code in this example.
|
2002-11-18 11:14:55 +00:00
|
|
|
* We disclaims any warranty of any kind, expressed or implied, as to
|
2001-12-11 14:35:30 +00:00
|
|
|
* its fitness for any particular use.
|
|
|
|
*
|
|
|
|
* This is the implementation file for the object that controls the Main
|
|
|
|
* page.
|
|
|
|
*/
|
|
|
|
|
2003-07-11 19:16:37 +00:00
|
|
|
#ifndef GNUSTEP
|
2004-03-10 16:38:36 +00:00
|
|
|
#include <GNUstepBase/GNUstep.h>
|
2003-07-11 19:16:37 +00:00
|
|
|
#endif
|
|
|
|
|
2004-01-08 16:23:47 +00:00
|
|
|
#include "Main.h"
|
|
|
|
#include "Hello.h"
|
|
|
|
#include "HelloPage.h"
|
2001-12-11 14:35:30 +00:00
|
|
|
|
|
|
|
@implementation Main
|
|
|
|
|
|
|
|
- (void)dealloc
|
|
|
|
{
|
|
|
|
DESTROY(nameString);
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2010-06-09 21:38:01 +00:00
|
|
|
- (WOComponent *)sayHello
|
2001-12-11 14:35:30 +00:00
|
|
|
{
|
2010-06-09 21:38:01 +00:00
|
|
|
HelloPage *nextPage = (HelloPage*)[self pageWithName:@"HelloPage"];
|
2001-12-11 14:35:30 +00:00
|
|
|
[nextPage setNameString:nameString];
|
2010-06-09 21:38:01 +00:00
|
|
|
|
2001-12-11 14:35:30 +00:00
|
|
|
return nextPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-06-13 21:51:06 +00:00
|
|
|
/*
|
|
|
|
* in an real world application you should move these to separate files.
|
|
|
|
*/
|
|
|
|
|
2010-06-09 21:38:01 +00:00
|
|
|
@interface Session:WOSession
|
2001-12-11 14:35:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-06-09 21:38:01 +00:00
|
|
|
@interface Application:WOApplication
|
2001-12-11 14:35:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-06-13 21:51:06 +00:00
|
|
|
@interface DirectAction:WODirectAction
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2001-12-11 14:35:30 +00:00
|
|
|
@implementation Session
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Application
|
|
|
|
@end
|
2010-06-13 21:51:06 +00:00
|
|
|
|
|
|
|
@implementation DirectAction
|
|
|
|
@end
|