Up

STEnvironment class reference

Authors

Stefan Urbanek (urbanek@host.sk)

Copyright: (C) 2002 Free Software Foundation

Software documentation for the STContext class

STContext : NSObject

Declared in:
StepTalk/STContext.h

Description forthcoming.


Instance Variables

Method summary

addNamedObjectsFromDictionary: 

- (void) addNamedObjectsFromDictionary: (NSDictionary*)dict;

Description forthcoming.


createsUnknownObjects 

- (BOOL) createsUnknownObjects;

Returns YES if unknown objects are being created.


fullScriptingEnabled 

- (BOOL) fullScriptingEnabled;

Returns YES if full scripting is enabled.


knownObjectNames 

- (NSArray*) knownObjectNames;

Description forthcoming.


objectDictionary 

- (NSMutableDictionary*) objectDictionary;

Returns a dictionary of all named objects in the environment.


objectReferenceForObjectWithName: 

- (STObjectReference*) objectReferenceForObjectWithName: (NSString*)name;

Description forthcoming.


objectWithName: 

- (id) objectWithName: (NSString*)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.


parentContext 

- (STContext*) parentContext;

Description forthcoming.


removeObjectWithName: 

- (void) removeObjectWithName: (NSString*)objName;

Remove object named objName.


setCreatesUnknownObjects: 

- (void) setCreatesUnknownObjects: (BOOL)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: 

- (void) setFullScriptingEnabled: (BOOL)flag;

Full scripting
Enable or disable full scripting. When full scripting is enabled, you may send any message to any object.


setObject: forName: 

- (void) setObject: (id)anObject forName: (NSString*)objName;

Register object anObject with name objName.


setParentContext: 

- (void) setParentContext: (STContext*)context;

Description forthcoming.




Instance Variables for STContext Class

createsUnknownObjects

@protected BOOL createsUnknownObjects;

Description forthcoming.


fullScripting

@protected BOOL fullScripting;

Description forthcoming.


objectDictionary

@protected NSMutableDictionary* objectDictionary;

Description forthcoming.


parentContext

@protected STContext* parentContext;

Description forthcoming.






Up