mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-23 11:31:01 +00:00
Implement method which is advertised in warning message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35781 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f683714c79
commit
ea1fed4269
3 changed files with 19 additions and 2 deletions
|
@ -1,5 +1,12 @@
|
||||||
2012-11-03 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2012-11-03 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Frameworks/StepTalk/STConversation.h
|
||||||
|
(-conversationWithContext:language:):
|
||||||
|
* Frameworks/StepTalk/STConversation.m
|
||||||
|
(-conversationWithContext:language:):
|
||||||
|
Implement method which is advertised as replacement for the
|
||||||
|
deprecated method -conversationWithEnvironment:language:.
|
||||||
|
|
||||||
* Frameworks/StepTalk/STConversation.m (-runScriptFromString:,
|
* Frameworks/StepTalk/STConversation.m (-runScriptFromString:,
|
||||||
-conversationWithEnvironment:language:, -initWithEnvironment:language:,
|
-conversationWithEnvironment:language:, -initWithEnvironment:language:,
|
||||||
-environment):
|
-environment):
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#import <Foundation/NSObject.h>
|
#import <Foundation/NSObject.h>
|
||||||
|
|
||||||
|
@class NSArray;
|
||||||
@class STEngine;
|
@class STEngine;
|
||||||
@class STContext;
|
@class STContext;
|
||||||
|
|
||||||
|
@ -50,6 +51,8 @@
|
||||||
STContext *context;
|
STContext *context;
|
||||||
id returnValue;
|
id returnValue;
|
||||||
}
|
}
|
||||||
|
+ conversationWithContext:(STContext *)aContext
|
||||||
|
language:(NSString *)aLanguage;
|
||||||
- initWithContext:(STContext *)aContext
|
- initWithContext:(STContext *)aContext
|
||||||
language:(NSString *)aLanguage;
|
language:(NSString *)aLanguage;
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,13 @@
|
||||||
return AUTORELEASE([[self alloc] initWithContext:env language:nil]);
|
return AUTORELEASE([[self alloc] initWithContext:env language:nil]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ conversationWithContext:(STContext *)aContext
|
||||||
|
language:(NSString *)aLanguage
|
||||||
|
{
|
||||||
|
return AUTORELEASE([[self alloc] initWithContext:aContext
|
||||||
|
language:aLanguage]);
|
||||||
|
}
|
||||||
|
|
||||||
- (bycopy id)resultByCopy
|
- (bycopy id)resultByCopy
|
||||||
{
|
{
|
||||||
return [self result];
|
return [self result];
|
||||||
|
@ -52,7 +59,7 @@
|
||||||
- (id)runScriptFromString:(NSString *)aString
|
- (id)runScriptFromString:(NSString *)aString
|
||||||
{
|
{
|
||||||
NSLog(@"Warning: runScriptFromString: in STConversation is deprecated,"
|
NSLog(@"Warning: runScriptFromString: in STConversation is deprecated,"
|
||||||
@" use -interpretScript: and -returnValue.");
|
@" use -interpretScript: and -result instead.");
|
||||||
[self interpretScript:aString];
|
[self interpretScript:aString];
|
||||||
return [self result];
|
return [self result];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue