# STEnvironment class reference

urbanek@host.sk
2002 Free Software Foundation
Software documentation for the STEnvironment class
StepTalk/STEnvironment.h
Description forthcoming.
defaultScriptingEnvironment
Creating environment
Creates and initialises scripting environment using standard description.
environmentWithDescription:
aDescription
Creates and initialises scripting environment using environment description description.
environmentWithDescriptionName:
descName
Creates and initialises scripting environment using description with name descName.
addClassesWithNames:
names
Add classes specified by the names in the names array. This method is used internally to add classes provided by modules.
addNamedObjectsFromDictionary:
dict
Description forthcoming.
createsUnknownObjects
Returns `YES` if unknown objects are being created.
fullScriptingEnabled
Returns `YES` if full scripting is enabled.
includeBundle:
aBundle
Include scripting capabilities advertised by the bundle aBundle. If the bundle is already loaded, nothing happens.
includeFramework:
frameworkName
Include scripting capabilities advertised by the framework with name frameworkName. If the framework is already loaded, nothing happens.
initDefault
Initialises scripting environment using default description.
initWithDescription:
aDescription
Initialises scripting environment using scripting description aDescription.
initWithDescriptionName:
descName
Initialises scripting environment using description with name descName.
knownObjectNames
Description forthcoming.
loadModule:
moduleName
Modules
Load StepTalk module with the name moduleName. Modules are stored in the Library/StepTalk/Modules directory.
objectDictionary
Named objects and object references
Returns a dictionary of all named objects in the environment.
objectReferenceForObjectWithName:
name
Description forthcoming.
objectWithName:
objName
Return object with name objName. If object is not found int the object dictionary, then object finders are used to try to find the object. If object is found by an object finder, then it is put into the object dicitonary. If there is no object with given name, `nil` is returned.
registerObjectFinder:
finder
name:
name
Distributed objects
Register object finder finder under the name name
registerObjectFinderNamed:
name
Register object finder named name. This method will try to find an object finder bundle in Library/StepTalk/Finders directories.
removeObjectFinderWithName:
name
Remove object finder with name name
removeObjectWithName:
objName
Remove object named objName.
setCreatesUnknownObjects:
flag

Enable or disable creation of unknown objects. Normally you get `nil` if you request for non-existant object. If flag is `YES` then by requesting non-existant object, name for that object is created and it is set no STNil.

Note: This method will be probably removed (moved to Smalltalk language bundle).

setFullScriptingEnabled:
flag
Full scripting
Enable or disable full scripting. When full scripting is enabled, you may send any message to any object.
setObject:
anObject
forName:
objName
Register object anObject with name objName.
translateSelector:
aString
forReceiver:
anObject
Selector translation