mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 17:20:57 +00:00
o in -performActionNamed:, raise exception if method is not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18919 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
414758c592
commit
8b0d7de365
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
/** GSWDirectAction.m - <title>GSWeb: Class GSWDirectAction</title>
|
/** GSWDirectAction.m - <title>GSWeb: Class GSWDirectAction</title>
|
||||||
|
|
||||||
Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
Copyright (C) 1999-2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
||||||
Date: Feb 1999
|
Date: Feb 1999
|
||||||
|
@ -57,7 +57,6 @@ RCS_ID("$Id$")
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
-(id <GSWActionResults>)performActionNamed:(NSString*)actionName
|
-(id <GSWActionResults>)performActionNamed:(NSString*)actionName
|
||||||
{
|
{
|
||||||
//OK
|
|
||||||
id<GSWActionResults> actionResult=nil;
|
id<GSWActionResults> actionResult=nil;
|
||||||
SEL actionSel=NULL;
|
SEL actionSel=NULL;
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
|
@ -65,9 +64,9 @@ RCS_ID("$Id$")
|
||||||
NSDebugMLLog(@"requests",@"actionSel=%p",(void*)actionSel);
|
NSDebugMLLog(@"requests",@"actionSel=%p",(void*)actionSel);
|
||||||
if (!actionSel)
|
if (!actionSel)
|
||||||
{
|
{
|
||||||
//TODO exception
|
[NSException raise:NSInvalidArgumentException
|
||||||
LOGError(@"No selector for action: %@ (%@Action)",actionName,actionName);//TODO
|
format:@"No such method: %@ in class named %@.",
|
||||||
actionResult=[self defaultAction];//No ??
|
actionName,[self className]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -119,6 +118,7 @@ RCS_ID("$Id$")
|
||||||
//====================================================================
|
//====================================================================
|
||||||
@implementation GSWDirectAction (GSWTakeValuesConvenience)
|
@implementation GSWDirectAction (GSWTakeValuesConvenience)
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
//NDFN: return additional path elements
|
//NDFN: return additional path elements
|
||||||
-(NSArray*)additionalRequestPathArray
|
-(NSArray*)additionalRequestPathArray
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue