Added missing files

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@17440 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Urbanek 2003-08-06 19:49:44 +00:00
parent bbc3eac654
commit 5d3f2c9748
6 changed files with 101 additions and 8 deletions

View file

@ -48,7 +48,7 @@ StepTalk_OBJC_FILES = \
STUndefinedObject.m \
NSNumber+additions.m \
NSObject+additions.m \
SteptalkScriptingInfo.m
StepTalkScriptingInfo.m
STEPTALK_HEADER_FILES = \
STBundleInfo.h \

View file

@ -12,6 +12,7 @@
NSMutableDictionary *ivars;
NSMutableDictionary *methods;
}
+ scriptObject;
- initWithInstanceVariableNames:(NSString *)names;
- (void)setObject:(id)anObject forVariable:(NSString *)aName;

View file

@ -3,14 +3,23 @@
#import "STScriptObject.h"
@implementation STScriptObject
- initWithInstanceVariableNames:(NSString *)names
/** Return new instance of script object without any instance variables */
+ scriptObject
{
return AUTORELEASE([[self alloc] init]);
}
- init
{
self = [super init];
methods = [[NSMutableDictionary alloc] init];
return self;
}
- initWithInstanceVariableNames:(NSString *)names
{
return [self init];
}
- (void)dealloc
{
RELEASE(methods);
@ -20,16 +29,16 @@
- (void)setObject:(id)anObject forVariable:(NSString *)aName
{
[self _notImplemented:_cmd];
[self notImplemented:_cmd];
}
- (id)objectForVariable:(NSString *)aName
{
[self _notImplemented:_cmd];
[self notImplemented:_cmd];
}
- (NSArray *)instanceVariableNames
{
[self _notImplemented:_cmd];
return [ivars allKeys];
}
- (void)addMethod:(STMethod *)aMethod
@ -42,7 +51,7 @@
}
- (void)removeMethod:(STMethod *)aMethod
{
[self _notImplemented:_cmd];
[self notImplemented:_cmd];
}
- (void)removeMethodWithName:(NSString *)aName
{

View file

@ -0,0 +1,13 @@
{
ScriptingInfoClass = StepTalkScriptingInfo;
Classes = (
STEnvironment,
STLanguage,
STScript,
STScriptsManager,
STBundleInfo,
STEngine,
STScriptObject
);
}

View file

@ -0,0 +1,32 @@
/**
StepTalkScriptingInfo.h
Module to bring StepTalk classes
Copyright (c) 2002 Free Software Foundation
Written by: Stefan Urbanek <urbanek@host.sk>
Date: 2002 Jun 18
This file is part of the StepTalk project.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import <Foundation/NSObject.h>
@interface StepTalkScriptingInfo:NSObject
@end

View file

@ -0,0 +1,38 @@
/**
StepTalkScriptingInfo.
Module to bring StepTalk classes
Copyright (c) 2002 Free Software Foundation
Written by: Stefan Urbanek <urbanek@host.sk>
Date: 2002 Jun 18
This file is part of the StepTalk project.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import "StepTalkScriptingInfo.h"
@class NSDictionary;
@implementation StepTalkScriptingInfo
+ (NSDictionary *)namedObjectsForScripting
{
return nil;
}
@end