Your DirectAction.wos needs @interface and @implementation tokens.  If you
create a WebObjects Application project with WebScript as your language
preference you'll get the following DirectAction.wos:


@interface DirectAction : WODirectAction { }
@end

@implementation DirectAction

- defaultAction {
    return [self pageWithName:@"Main"];
}

@end

- Eric Bailey


-----Original Message-----
From: matt kangas <[EMAIL PROTECTED]>
To: Multiple recipients of list <[EMAIL PROTECTED]>
Date: Wednesday, February 24, 1999 6:27 PM
Subject: -[DirectAction _scope]: selector not recognized


>this seems like such a simple thing, but it's not working. could anybody
>please explain to me what's going on here? i'd be most grateful...
>
>* take an otherwise healthy WebScript/ObjC WO4 app named Foo.woa running
>on Solaris
>* replace DirectAction.m with DirectAction.wos on disk & in the project,
>do make/make install
>* restart the app
>
>DirectAction.wos looks like this
>
>- defaultAction {
>        return [self pageWithName:@"Main"];
>}
>
>(exactly what DirectAction.m looked like in its @implementation)
>
>* try to access this with
>http://localhost/cgi-bin/WebObjects/Foo.woa/wa/
>
>the result is:
>
>Application: Foo
>Error:       NSInvalidArgumentException
>Reason:      *** -[DirectAction _scope]: selector not recognized
>
>is something missing from DirectAction.wos? presumably yes, but i can't
>find any examples of DAs implemented in webscript. (c.f. previous gripe
>about InfoCenter)
>
>merci.
>
>--
> \7\3\d\e\k\b\8\u\o\x\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
>\m\a\t\t\.\k\a\n\g\a\s\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
>m\a\t\t\@\k\a\n\g\a\s\.\o\r\g\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
>

Reply via email to