mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
* Examples/hello/Main.m
GSW* -> WO* * Examples/hello/HelloPage.h * Examples/hello/Main.h wrap headers in #ifdef git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a1c26141d1
commit
0a3ed96e5e
4 changed files with 21 additions and 10 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-06-09 David Wetzel <dave@turbocat.de>
|
||||
* Examples/hello/Main.m
|
||||
GSW* -> WO*
|
||||
* Examples/hello/HelloPage.h
|
||||
* Examples/hello/Main.h
|
||||
wrap headers in #ifdef
|
||||
|
||||
2010-06-07 David Wetzel <dave@turbocat.de>
|
||||
* GSWeb.framework/GSWComponent.m
|
||||
validateTakeValue: forKeyPath:
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* page.
|
||||
*/
|
||||
|
||||
#ifndef __HelloPage_h__
|
||||
#define __HelloPage_h__
|
||||
|
||||
#include <WebObjects/WebObjects.h>
|
||||
|
||||
|
@ -20,3 +22,5 @@
|
|||
- (void)setNameString:(NSString *)string;
|
||||
|
||||
@end
|
||||
|
||||
#endif // __HelloPage_h__
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
* page.
|
||||
*/
|
||||
|
||||
#include <GSWeb/GSWeb.h>
|
||||
#ifndef __Main_h__
|
||||
#define __Main_h__
|
||||
|
||||
#include <WebObjects/WebObjects.h>
|
||||
|
||||
@interface Main:GSWComponent
|
||||
{
|
||||
|
@ -20,3 +23,4 @@
|
|||
|
||||
@end
|
||||
|
||||
#endif // __Main_h__
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#include <GNUstepBase/GNUstep.h>
|
||||
#endif
|
||||
|
||||
#include <WebObjects/WebObjects.h>
|
||||
|
||||
#include "Main.h"
|
||||
#include "Hello.h"
|
||||
#include "HelloPage.h"
|
||||
|
@ -27,25 +25,23 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (GSWComponent *)sayHello
|
||||
- (WOComponent *)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"];
|
||||
HelloPage *nextPage = (HelloPage*)[self pageWithName:@"HelloPage"];
|
||||
[nextPage setNameString:nameString];
|
||||
|
||||
return nextPage;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface Session:GSWSession
|
||||
@interface Session:WOSession
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface Application:GSWApplication
|
||||
@interface Application:WOApplication
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue