mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-22 02:51:05 +00:00
Fix typo in STActor method name and introduce additional methods to
add and remove instance variables. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36663 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f1d9694b1c
commit
b4b2bf3891
3 changed files with 37 additions and 1 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STActor.m (-instanceVariables): Fix typo in
|
||||
method name.
|
||||
* Frameworks/StepTalk/STActor.m (-addInstanceVariable:):
|
||||
* Frameworks/StepTalk/STActor.m (-removeInstanceVariable:):
|
||||
New methods to add and remove instance variables.
|
||||
|
||||
* Frameworks/StepTalk/STActor.h (-instanceVariableNames):
|
||||
* Frameworks/StepTalk/STActor.h (-setInstanceVariables:):
|
||||
* Frameworks/StepTalk/STActor.h (-instanceVariables):
|
||||
* Frameworks/StepTalk/STActor.h (-addInstanceVariable:):
|
||||
* Frameworks/StepTalk/STActor.h (-removeInstanceVariable:):
|
||||
Add methods to the public API.
|
||||
|
||||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Tools/STExecutor.h:
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
- (void)setEnvironment:(STEnvironment *)env;
|
||||
- (STEnvironment *)environment;
|
||||
|
||||
- (NSArray *)instanceVariableNames;
|
||||
- (void)setInstanceVariables:(NSDictionary *)dictionary;
|
||||
- (NSDictionary *)instanceVariables;
|
||||
- (void)addInstanceVariable:(NSString *)aName;
|
||||
- (void)removeInstanceVariable:(NSString *)aName;
|
||||
|
||||
- (void)addMethod:(id <STMethod>)aMethod;
|
||||
- (id <STMethod>)methodWithName:(NSString *)aName;
|
||||
- (void)removeMethod:(id <STMethod>)aMethod;
|
||||
|
|
|
@ -100,10 +100,25 @@
|
|||
[ivars removeAllObjects];
|
||||
[ivars addEntriesFromDictionary:dictionary];
|
||||
}
|
||||
- (NSDictionary *)instanceVarables
|
||||
- (NSDictionary *)instanceVariables
|
||||
{
|
||||
return [NSDictionary dictionaryWithDictionary:ivars];
|
||||
}
|
||||
- (void)addInstanceVariable:(NSString *)aName
|
||||
{
|
||||
if ([ivars valueForKey:aName] == nil)
|
||||
{
|
||||
[ivars setValue: STNil forKey: aName];
|
||||
}
|
||||
}
|
||||
- (void)removeInstanceVariable:(NSString *)aName
|
||||
{
|
||||
if ([ivars valueForKey:aName] != nil)
|
||||
{
|
||||
[ivars setValue: nil forKey: aName];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)addMethod:(id <STMethod>)aMethod
|
||||
{
|
||||
[methodDictionary setObject:aMethod forKey:[aMethod methodName]];
|
||||
|
|
Loading…
Reference in a new issue