Compare commits

...

143 commits

Author SHA1 Message Date
Wolfgang Lux
c4edd15418 Fix translation of cascades to avoid linear growth of the stack size 2025-04-18 17:20:04 +02:00
Wolfgang Lux
24f4aa5aab Add optimization to merge pop after store into a single bytecode 2025-04-18 16:05:28 +02:00
Wolfgang Lux
50bea91ee5 Add bytecode instructions for a more efficient translation of assignments 2025-04-18 11:42:41 +02:00
Wolfgang Lux
34bf3a32c1 Remove erroneous code that was increasing the required stack size 2025-04-18 11:36:41 +02:00
Wolfgang Lux
cfc2540b25 Allow for temporaries in blocks 2025-04-13 22:08:51 +02:00
Wolfgang Lux
81702d35bd Avoid shift/reduce conflicts for array parser 2025-04-13 21:43:02 +02:00
Wolfgang Lux
af7d12cdcf Update grammar file to support modern Bison 2025-04-13 21:21:17 +02:00
Wolfgang Lux
8d856d505e Fix bug where duplicate argument names were not detected 2025-04-13 17:13:32 +02:00
Wolfgang Lux
5b7d8c1cf1 Refactor to prepare for blocks with temporaries 2025-04-13 16:56:24 +02:00
Wolfgang Lux
9e2fca4a0d Factor out code for the compilation of blocks. 2025-04-13 15:54:07 +02:00
Wolfgang Lux
a8c10032c8 Remove redundant code to discard temporary variables 2025-04-13 15:40:49 +02:00
Wolfgang Lux
1682f849a4 Implement Smalltalk collection protocol methods for NSSet 2025-04-06 17:53:51 +02:00
Wolfgang Lux
232d35f218 Add keysDo: to the collection protocol methods for NSDictionary 2025-04-06 17:44:14 +02:00
Wolfgang Lux
c31a7dc5e9 Return nil from detect: if no match was found 2025-04-06 17:40:27 +02:00
Wolfgang Lux
ed62d8d758 Add methods whileTrue and whileFalse to STBlock 2025-04-06 17:29:45 +02:00
Wolfgang Lux
1a6660563e Prevent exception when sending a nil argument to a block 2025-04-06 17:24:06 +02:00
Wolfgang Lux
93caa89228 Unconditionally specify dependent libraries while linking StepTalk framework 2020-06-29 00:08:00 +02:00
Wolfgang Lux
9a3eef25c5 Use numberWithBool: when pushing true and false values onto the stack. 2019-03-27 09:22:10 +01:00
Wolfgang Lux
09841d976e Report unimplemented script methods rather than returning nil 2019-03-25 10:54:17 +01:00
Wolfgang Lux
f3ce2b7f32 Implement Smalltalk collection protocol methods for NSDictionary 2019-02-22 11:24:15 +01:00
Fred Kiefer
b8def7f876
Merge pull request #1 from iamleeg/documentation-update
Documentation update
2018-06-16 21:43:52 +02:00
Graham Lee
7c6cfec2d7 create change log entry 2018-03-20 21:10:11 +00:00
Graham Lee
705e29eb3c correct the spelling of deprecated throughout 2018-03-20 21:10:02 +00:00
Graham Lee
a75c831f18 update deprecated and removed selectors in the documentation 2018-03-20 21:05:48 +00:00
Wolfgang Lux
7dfa6d4d61 Add fix for generation of selector types on 64-bit architectures. 2018-02-18 10:20:26 +01:00
Wolfgang Lux
fdce6b2210 Remove comma that unintentionally breaks an exception format string 2017-12-27 18:59:05 +01:00
Wolfgang Lux
3967d6a602 Remove redundant method call 2017-12-27 18:45:06 +01:00
Wolfgang Lux
5d1d318e4b Use NULL instead of NO where a pointer argument is expected 2017-12-27 18:28:47 +01:00
Wolfgang Lux
aa77c8c9b4 Fix inconsistent distributed object modifiers 2017-12-27 18:20:55 +01:00
Wolfgang Lux
37e2cfb6cc Fix wrong return type in method declaration 2017-12-27 17:43:44 +01:00
Wolfgang Lux
e40cb9b45e Fix bug where incorrect method signatures were generated for script
methods with more than four arguments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@39088 72102866-910b-0410-8b05-ffd578937521
2015-10-23 16:32:21 +00:00
Wolfgang Lux
003925e334 Correctly initialize the scripting language used in a remote conversation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38152 72102866-910b-0410-8b05-ffd578937521
2014-11-02 22:19:54 +00:00
Wolfgang Lux
c3b1467afe Force use of a socket port name server to look up servers on other hosts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38151 72102866-910b-0410-8b05-ffd578937521
2014-11-02 22:11:55 +00:00
Wolfgang Lux
78991ff299 Fix space leak when a connection died.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38150 72102866-910b-0410-8b05-ffd578937521
2014-11-02 21:49:08 +00:00
Wolfgang Lux
2e01989552 Add method implementations for the symbolic selectors ~= and ~~.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38147 72102866-910b-0410-8b05-ffd578937521
2014-11-01 18:36:50 +00:00
Wolfgang Lux
5e87e76a79 Fix bug where the cached context of a block could be reused prematurely.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38146 72102866-910b-0410-8b05-ffd578937521
2014-11-01 18:26:39 +00:00
Wolfgang Lux
54ff99c389 Fix a whole bunch of space leaks in StepTalk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38145 72102866-910b-0410-8b05-ffd578937521
2014-11-01 17:47:23 +00:00
Wolfgang Lux
cf50d0e507 Remove unused interpreter attribute and corresponding argument from
STBlockContext and its initializer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38119 72102866-910b-0410-8b05-ffd578937521
2014-10-14 20:13:09 +00:00
Wolfgang Lux
e352e229d5 Remove unused environment argument from STMethodContext initializer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38118 72102866-910b-0410-8b05-ffd578937521
2014-10-14 20:03:39 +00:00
Wolfgang Lux
51b17b1ba5 Set the return value of the invocation also when the exit pseudo
method of a Smalltalk script object is called.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38117 72102866-910b-0410-8b05-ffd578937521
2014-10-14 07:58:57 +00:00
Wolfgang Lux
8b6c53712c Add missing nil terminator to argument list of arrayWithObjects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38116 72102866-910b-0410-8b05-ffd578937521
2014-10-14 07:51:02 +00:00
Wolfgang Lux
a58da09aa0 Fix another mutable vs. non-mutable array mismatch detected by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38065 72102866-910b-0410-8b05-ffd578937521
2014-09-09 15:11:46 +00:00
Wolfgang Lux
27f1ac7524 Use non-mutable array to fix mutable vs. non-mutable array mismatch
detected by clang.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38064 72102866-910b-0410-8b05-ffd578937521
2014-09-09 15:00:54 +00:00
Wolfgang Lux
779c0b47c4 Fix NSDebugLLog format issues detect by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38063 72102866-910b-0410-8b05-ffd578937521
2014-09-09 13:52:49 +00:00
Wolfgang Lux
66bd2c33fe Revert bogus change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37540 72102866-910b-0410-8b05-ffd578937521
2014-01-06 11:24:16 +00:00
Richard Frith-MacDonald
fad9c634f1 trivial optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37485 72102866-910b-0410-8b05-ffd578937521
2013-12-20 14:42:10 +00:00
Wolfgang Lux
70936d6e15 Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36777 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:44:50 +00:00
Wolfgang Lux
254398ccdf Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36776 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:42:15 +00:00
Wolfgang Lux
0e94ff5bac Fix bug where the Smalltalk source reader was setting a wrong token
range for character literals.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36775 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:30:52 +00:00
Wolfgang Lux
bfed68b1c3 Fix bug where the Smalltalk source reader would accept an incomplete
exponent in a real number, e.g., '1e'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36774 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:24:51 +00:00
Wolfgang Lux
4298e255e7 Prevent out of range accesses for the input string in the Smalltalk
source reader.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36773 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:13:05 +00:00
Wolfgang Lux
c046955909 Tidy Smalltalk source reader.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36772 72102866-910b-0410-8b05-ffd578937521
2013-06-30 16:54:32 +00:00
Wolfgang Lux
9f13e69a41 Fix marshaling for method and structure arguments with type (char*)
and skip const qualifiers in argument and result types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36664 72102866-910b-0410-8b05-ffd578937521
2013-05-27 12:34:12 +00:00
Wolfgang Lux
b4b2bf3891 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
2013-05-26 16:25:54 +00:00
Wolfgang Lux
f1d9694b1c Change Smalltalk grammar to allow empty list of temporaries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36662 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:14:13 +00:00
Wolfgang Lux
41047a6341 StepTalk scripts panel: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36661 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:03:29 +00:00
Wolfgang Lux
314a9945b2 StepTalk tools and examples: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36660 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:01:34 +00:00
Wolfgang Lux
fe46a9e113 StepTalk module bundles: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36659 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:58:39 +00:00
Wolfgang Lux
3f8eeb9ff0 StepTalk Smalltalk compiler: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36658 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:51:26 +00:00
Wolfgang Lux
7532ab371a StepTalk framework: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36657 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:35:06 +00:00
Wolfgang Lux
ba12bd3874 Fix bug in Smalltalk reader where the last character of an identifier
was dropped when the assignment operator ':=' follows it immediately.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36480 72102866-910b-0410-8b05-ffd578937521
2013-04-06 12:22:28 +00:00
Wolfgang Lux
9576ab41c4 Fix bug where instance variables of an actor got lost when set to nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36476 72102866-910b-0410-8b05-ffd578937521
2013-04-06 09:08:42 +00:00
Wolfgang Lux
be39511ed8 Add yourself method from Smalltalk, which is convenient in cascades.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36463 72102866-910b-0410-8b05-ffd578937521
2013-04-04 07:33:26 +00:00
Wolfgang Lux
66076e8c6e Hide the StepTalk application scripting menu after it has been loaded
from its bundle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36457 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:53:14 +00:00
Wolfgang Lux
9feb26b63c Fix -collect: method to properly handle nil results from block.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36456 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:46:24 +00:00
Wolfgang Lux
5cfb99c758 Fix Smalltalk reader to always return correct line numbers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36455 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:42:02 +00:00
Wolfgang Lux
ac8fc9cbb6 Fix bug where the STInterpreterReturnException was not handled when a
block returns nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36426 72102866-910b-0410-8b05-ffd578937521
2013-03-25 11:32:20 +00:00
Wolfgang Lux
b7a0150e02 Fix stack underflow exception when computing the value of an empty
block.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36422 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:29:43 +00:00
Wolfgang Lux
1fc2e5fb63 Follow Smalltalk convention to return the receiver from a method
without an explicit return statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36421 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:24:11 +00:00
Wolfgang Lux
fd46046983 Fix to allow using Smalltalk blocks even after the method containing
their definition has returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36420 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:19:55 +00:00
Wolfgang Lux
b5aeea6a29 Implement correct semantics for return statements inside a Smalltalk
block, which is to return from the method containing the block's
definition.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36419 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:02:20 +00:00
Wolfgang Lux
9b35f05577 Fix Smalltalk compiler bug: The value of a statement sequence is the
value of its last statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36410 72102866-910b-0410-8b05-ffd578937521
2013-03-23 20:02:23 +00:00
Wolfgang Lux
760bbb4b83 Fix bug where an uninitialized attribute got used during initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36409 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:58:28 +00:00
Wolfgang Lux
d51cc43755 Check the result of the super class initializer and assign it to self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36407 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:17:07 +00:00
Wolfgang Lux
81df64e7ab Check the result of the super class initializer and assign it to self.
Also fix two minor space leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36406 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:07:51 +00:00
Wolfgang Lux
fa9b3747b1 Update to current StepTalk framework methods.
Check the result of the super class initializer and assign it to self.
Also fix a space leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36405 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:00:43 +00:00
Wolfgang Lux
3e7c37d9b3 Check the result of the super class initializer and assign it to self.
Also fix a space leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36404 72102866-910b-0410-8b05-ffd578937521
2013-03-23 18:35:43 +00:00
Wolfgang Lux
a31258c1d1 Check the result of the super class initializer and assign it to self.
Also fix two memory management errors.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36403 72102866-910b-0410-8b05-ffd578937521
2013-03-23 18:09:25 +00:00
Wolfgang Lux
484ff95559 Check the result of the super class initializer and assign it to self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36402 72102866-910b-0410-8b05-ffd578937521
2013-03-23 17:17:35 +00:00
Wolfgang Lux
e180a533b2 Unescape two successive single quote characters inside Smalltalk
literal string tokens.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36235 72102866-910b-0410-8b05-ffd578937521
2013-03-02 16:09:07 +00:00
Wolfgang Lux
303e860924 Define the standard Smalltalk methods for invoking blocks with
arguments, keeping StepTalk's old non-standard methods for backward
compatibility.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36086 72102866-910b-0410-8b05-ffd578937521
2013-02-08 09:02:06 +00:00
Wolfgang Lux
94d605787c Fix syntax error reports to include context when compiling a Smalltalk string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35840 72102866-910b-0410-8b05-ffd578937521
2012-12-02 11:37:26 +00:00
Wolfgang Lux
6ed2e062bc Fix StepTalk unit test example
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35782 72102866-910b-0410-8b05-ffd578937521
2012-11-03 14:44:15 +00:00
Wolfgang Lux
ea1fed4269 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
2012-11-03 14:40:52 +00:00
Wolfgang Lux
f683714c79 Fix typos in a few StepTalk warning messages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35780 72102866-910b-0410-8b05-ffd578937521
2012-11-03 14:24:07 +00:00
Wolfgang Lux
c1a084a1c8 Remove a repeated attribute declaration from the implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35751 72102866-910b-0410-8b05-ffd578937521
2012-10-26 17:15:52 +00:00
Wolfgang Lux
903e11ce23 Add WebServices bundle to StepTalk. Must be requested explicitly by
adding webservices=yes to the make command line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35750 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:58:45 +00:00
Wolfgang Lux
43359d0766 Add SQLClient bundle to StepTalk. Must be requested explicitly by
adding sqlclient=yes to the make command line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35749 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:46:43 +00:00
Wolfgang Lux
2da0d9a1bc Fix Makefile variable for StepTalk bundles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35748 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:01:57 +00:00
Wolfgang Lux
91ca747a02 Fix unintended fall through in a switch statement in Steptalk detected
by clang's static analyzer


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34731 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:29:14 +00:00
Wolfgang Lux
f7b199f99b Add missing format parameter in Steptalk detected by clang's static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34730 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:25:38 +00:00
Wolfgang Lux
939fecc187 Fix memory management bugs in Steptalk detected by clang's static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34729 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:22:40 +00:00
Wolfgang Lux
63f3940bee Shut down compiler warnings for StepTalk's Shell example.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34546 72102866-910b-0410-8b05-ffd578937521
2012-01-15 18:16:56 +00:00
Wolfgang Lux
0a390f4c14 Rename selector which is automatically run at the end of a script to
shutDown to avoid conflict with the NSObject -finalize method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34545 72102866-910b-0410-8b05-ffd578937521
2012-01-15 17:50:54 +00:00
Wolfgang Lux
ceaed8ae36 New methods to construct rectangles from points and sizes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34544 72102866-910b-0410-8b05-ffd578937521
2012-01-15 17:33:48 +00:00
Wolfgang Lux
64fad794f3 Remove obsolete NSDataLink constants from StepTalk's AppKit module.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34543 72102866-910b-0410-8b05-ffd578937521
2012-01-15 17:18:28 +00:00
Wolfgang Lux
77ed0deda7 Validate Run button of the StepTalk's scripts panel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34542 72102866-910b-0410-8b05-ffd578937521
2012-01-15 17:15:07 +00:00
Wolfgang Lux
520c66f605 Get StepTalk's script panel to work and protect against GNUstep
stubbornly replacing an application's main menu when the scripting
menu is loaded.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34541 72102866-910b-0410-8b05-ffd578937521
2012-01-15 16:53:48 +00:00
Wolfgang Lux
4c834cc46f 64-bit tweaks for StepTalk's Smalltalk compiler.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34539 72102866-910b-0410-8b05-ffd578937521
2012-01-15 15:37:55 +00:00
Wolfgang Lux
2dc8f7f786 Shut down a few more compiler warnings for StepTalk's Smalltalk interpreter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34537 72102866-910b-0410-8b05-ffd578937521
2012-01-15 14:44:47 +00:00
Wolfgang Lux
69646308b3 Shut down compiler warnings for StepTalk's ApplicationScripting bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34536 72102866-910b-0410-8b05-ffd578937521
2012-01-15 13:59:18 +00:00
Wolfgang Lux
7f4a3ef104 Shut down (most) compiler warnings for StepTalk's Smalltalk interpreter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34535 72102866-910b-0410-8b05-ffd578937521
2012-01-15 13:27:14 +00:00
Wolfgang Lux
8d9a72b4fb Add special case to register selectors of (Smalltalk) binary operators
in StepTalk with one argument instead of zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34534 72102866-910b-0410-8b05-ffd578937521
2012-01-15 09:34:22 +00:00
Wolfgang Lux
6c3d7354ef Always register typed selectors in StepTalk, since forwarding to
untyped selectors stopped working a while back in GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34533 72102866-910b-0410-8b05-ffd578937521
2012-01-15 09:18:50 +00:00
Wolfgang Lux
f59cb2fc92 Clean up imports in several StepTalk files removing includes of the
Objective-C runtime headers. Also replace a few more deprecated
Objective-C runtime calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34532 72102866-910b-0410-8b05-ffd578937521
2012-01-15 09:04:40 +00:00
Wolfgang Lux
9903bbabc3 More Objective-C 2 API updates for StepTalk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@32798 72102866-910b-0410-8b05-ffd578937521
2011-04-07 11:31:20 +00:00
Richard Frith-MacDonald
96647c01bc void runtime specific code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@32790 72102866-910b-0410-8b05-ffd578937521
2011-04-06 19:21:57 +00:00
Wolfgang Lux
462075c567 Fix potential crash in StepTalk framework.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@32789 72102866-910b-0410-8b05-ffd578937521
2011-04-06 18:58:27 +00:00
Wolfgang Lux
f8eaa48703 Update StepTalk Objective-C utilities to (mostly) use Objective-C 2 API.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@32787 72102866-910b-0410-8b05-ffd578937521
2011-04-06 18:40:59 +00:00
Wolfgang Lux
06545c5c95 Add missing semicolons at end of plist dictionaries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31915 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:50:33 +00:00
Wolfgang Lux
147bb97e44 Fix a bug in StepTalk's Smalltalk reader where an incorrect string
token was returned when the string ended at the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31914 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:38:32 +00:00
Wolfgang Lux
a7ffc9baae Prevent potential crash in StepTalk when sending a message to the
undefined object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31913 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:26:33 +00:00
Wolfgang Lux
df6691bc4f Update StepTalk's AppKit notification list to match recent change in gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31912 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:15:57 +00:00
Richard Frith-MacDonald
650b2f3bae warn if gnustep-make not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31317 72102866-910b-0410-8b05-ffd578937521
2010-09-10 14:00:14 +00:00
David Ayers
3d18a2f960 * Modules/GDL2/GNUmakefile: Use ADDITIONAL_NATIVE_LIBS instead of
GDL2_BUNDLE_LIBS to link GDL2 packages.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@26980 72102866-910b-0410-8b05-ffd578937521
2008-10-28 07:24:22 +00:00
Nicola Pero
f1ec641958 Updated to use GNUSTEP_LIBRARY instead of GNUSTEP_INSTALLATION_DIR/Library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@24554 72102866-910b-0410-8b05-ffd578937521
2007-02-14 12:34:00 +00:00
Stefan Urbanek
31585ce54c Update the language template
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21720 72102866-910b-0410-8b05-ffd578937521
2005-09-17 12:30:20 +00:00
Stefan Urbanek
f8d68f9d0f New files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21707 72102866-910b-0410-8b05-ffd578937521
2005-09-05 21:16:28 +00:00
Stefan Urbanek
38781ad778 Regenerated docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21706 72102866-910b-0410-8b05-ffd578937521
2005-09-05 21:15:27 +00:00
Stefan Urbanek
11a76485a1 added distant scripting test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21705 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:38:41 +00:00
Stefan Urbanek
3cecc2c163 update to 0.10.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21703 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:31:08 +00:00
Stefan Urbanek
6d2a2ba9c0 Removed Server example as it was obsoleted by remote conversations and shared environments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21702 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:17:56 +00:00
Stefan Urbanek
65055d8964 minor version update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21701 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:14:11 +00:00
Stefan Urbanek
142ca84c8e use remote scripting, reflect framework changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21700 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:11:31 +00:00
Stefan Urbanek
13f9ee9afc added stenvironment tool, removet stalk and stupdate_languages tools as they were obsolete, reflected framework changes, read from standard input, use remote conversations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21699 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:10:43 +00:00
Stefan Urbanek
2d8345af4e reflect framework changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21698 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:03:05 +00:00
Stefan Urbanek
b4e1c926df Added remote conversation and language manager, removed STLanguage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21697 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:02:03 +00:00
Stefan Urbanek
b35d3fffae 0.9.1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21384 72102866-910b-0410-8b05-ffd578937521
2005-06-30 21:14:07 +00:00
Stefan Urbanek
e06f7bf374 added actor class
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21382 72102866-910b-0410-8b05-ffd578937521
2005-06-30 21:10:02 +00:00
Stefan Urbanek
2e2d056a79 another undefined key exception fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21360 72102866-910b-0410-8b05-ffd578937521
2005-06-25 17:56:03 +00:00
Stefan Urbanek
a3d4279702 Fixed undefined key exception - fixed in base too
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21355 72102866-910b-0410-8b05-ffd578937521
2005-06-24 21:06:21 +00:00
Stefan Urbanek
305d939c88 enhanced full scripting: search all classes when enabled. warning: security should be checked
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21331 72102866-910b-0410-8b05-ffd578937521
2005-06-20 20:44:52 +00:00
Stefan Urbanek
1664a14a02 Access ivars by name not by index, use KVC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21330 72102866-910b-0410-8b05-ffd578937521
2005-06-20 20:40:47 +00:00
Stefan Urbanek
dee34ffd83 block patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20880 72102866-910b-0410-8b05-ffd578937521
2005-03-09 21:35:54 +00:00
Stefan Urbanek
732057a75f Introduced contexts finally commited
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20518 72102866-910b-0410-8b05-ffd578937521
2005-01-04 21:51:13 +00:00
Stefan Urbanek
8417ff6e26 Removed STMethodSignatureForSelector - not-portable to OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20329 72102866-910b-0410-8b05-ffd578937521
2004-11-09 21:12:19 +00:00
Stefan Urbanek
9d91c09b7f *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20328 72102866-910b-0410-8b05-ffd578937521
2004-11-09 20:59:07 +00:00
Stefan Urbanek
70f708f1d7 minor bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20009 72102866-910b-0410-8b05-ffd578937521
2004-09-06 20:00:02 +00:00
Stefan Urbanek
e5e0e9fdb8 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19828 72102866-910b-0410-8b05-ffd578937521
2004-08-05 17:01:52 +00:00
Stefan Urbanek
e9767d770e Added new script search paths
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19809 72102866-910b-0410-8b05-ffd578937521
2004-08-01 22:33:43 +00:00
Stefan Urbanek
2e7e5f3d37 Added NSString containsString: to Foundation module.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19778 72102866-910b-0410-8b05-ffd578937521
2004-07-26 17:39:02 +00:00
Stefan Urbanek
7f834080f5 Fixed max number of literals and longjmp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19706 72102866-910b-0410-8b05-ffd578937521
2004-07-10 11:12:35 +00:00
Stefan Urbanek
fe3e1bd17d Fixed expresion duplicating.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19648 72102866-910b-0410-8b05-ffd578937521
2004-06-28 21:11:50 +00:00
250 changed files with 12534 additions and 6186 deletions

View file

@ -10,3 +10,4 @@ New
Old
Extensions
.snap-ignore
.stlanguage

View file

@ -1,3 +1,63 @@
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>>
* Source/STScriptsPanel.m:
int->NSInteger transition
2013-04-03 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STApplicationScriptingController.m (-scriptingMenu): Hide the
scripting menu after it has been loaded from its bundle.
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STApplicationScriptingController.m (-init):
* Source/STScriptsPanel.m (-init):
* Source/STTranscript.m (-init):
Check the result of the super class initializer and assign it to
self.
* Source/STScriptsPanel.m (-dealloc): Fix a space leak.
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STTranscript.m (-showError:): Fix space leak detected by clang.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STScriptsPanel.m (-selectScript:): Validate Run button of the
scripts panel.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STApplicationScriptingController.m (-scriptingMenu): Protect
against GNUstep stubbornly replacing the application's main menu.
* Source/STScriptsPanel.m (-selectScript:): Handle case where the
script's description is nil.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/STTranscript.h (-window):
* Source/NSApplication+additions.h (-applicationNameForScripting):
Declare public methods.
* Source/NSApplication+additions.m (-applicationNameForScripting):
Fix typo in method name.
* Source/NSApplication+additions.m (-_createDefaultScriptingEnvironment):
Fix to no longer use methods which were removed when adding STConversation.
* Source/STApplicationScriptingController.m (-executeScript:,
-executeScriptString:inEnvironment:): Update for changes when
STLanguage was removed and STContext was introduced.
* Source/STApplicationScriptingController.h (-executeScript:):
* Source/STApplicationScriptingController.m (-executeScript:): The
method expects an STFileScript.
* Source/STScriptsPanel.h (-selectedScript):
* Source/STScriptsPanel.m (-run, -selectScript, -browse, -selectedScript):
Method seletecedScript returns a STFileScript.
2003 May 2 Stefan Urbanek <urbanek@host.sk>
* Added 'Objects' searching in application.

View file

@ -39,4 +39,6 @@
- (NSMenu *)scriptingMenu;
- (void)setScriptingMenu:(NSMenu *)menu;
- (NSString *)applicationNameForScripting;
@end

View file

@ -31,6 +31,7 @@
#import "STEnvironment+additions.h"
#import <StepTalk/STBundleInfo.h>
#import <StepTalk/STEnvironmentDescription.h>
#import <Foundation/NSBundle.h>
#import <Foundation/NSDebug.h>
@ -95,6 +96,7 @@ static STApplicationScriptingController *scriptingController = nil;
/** Create shared scripting environment. */
- (void)_createDefaultScriptingEnvironment
{
STEnvironmentDescription *desc;
STEnvironment *env = nil;
STBundleInfo *info;
//NSString *path;
@ -127,18 +129,19 @@ static STApplicationScriptingController *scriptingController = nil;
if(str && ![str isEqualToString:@""])
{
env = [STEnvironment environmentWithDescriptionName:str];
desc = [STEnvironmentDescription descriptionWithName:str];
env = [STEnvironment environmentWithDescription:desc];
}
if(!env)
{
NSDebugLog(@"Using default scripting environment");
env = [STEnvironment defaultScriptingEnvironment];
env = [STEnvironment environmentWithDefaultDescription];
}
[env loadModule:@"AppKit"];
[env includeBundle:[NSBundle mainBundle]];
[env setObject:self forName:@"Application"];
[env setObject:self forName:[self applcationNameForScripting]];
[env setObject:self forName:[self applicationNameForScripting]];
[env setObject:[STTranscript sharedTranscript] forName:@"Transcript"];
scriptingEnvironment = RETAIN(env);
@ -193,7 +196,7 @@ static STApplicationScriptingController *scriptingController = nil;
}
/** Name of application object */
- (NSString *)applcationNameForScripting
- (NSString *)applicationNameForScripting
{
return [[NSProcessInfo processInfo] processName];
}

View file

@ -27,7 +27,7 @@
#import <Foundation/NSObject.h>
@class STScriptsPanel;
@class STScript;
@class STFileScript;
@class STEnvironment;
@class NSMenu;
@class NSDictionary;
@ -45,7 +45,7 @@
- (void)orderFrontScriptsPanel:(id)sender;
- (void)orderFrontTranscriptWindow:(id)sender;
- (id)executeScript:(STScript *)script;
- (id)executeScript:(STFileScript *)script;
- (id)executeScriptString:(NSString *)source
inEnvironment:(STEnvironment *)env;
@end

View file

@ -36,8 +36,8 @@
#import <StepTalk/STBundleInfo.h>
#import <StepTalk/STEngine.h>
#import <StepTalk/STEnvironment.h>
#import <StepTalk/STLanguage.h>
#import <StepTalk/STScript.h>
#import <StepTalk/STLanguageManager.h>
#import <StepTalk/STFileScript.h>
#import "STScriptsPanel.h"
#import "STTranscript.h"
@ -47,13 +47,13 @@
@implementation STApplicationScriptingController
- init
{
STBundleInfo *info;
[super init];
if ((self = [super init]) != nil)
{
STBundleInfo *info;
info = [STBundleInfo infoForBundle:[NSBundle mainBundle]];
objectRefereceDict = RETAIN([info objectReferenceDictionary]);
info = [STBundleInfo infoForBundle:[NSBundle mainBundle]];
objectRefereceDict = RETAIN([info objectReferenceDictionary]);
}
return self;
}
- (void)dealloc
@ -111,17 +111,72 @@
{
if(!scriptingMenu)
{
if(![self loadMyNibNamed:@"ScriptingMenu"])
// FIXME ScriptingMenu replaces the application's main menu when it is
// loaded, since GNUstep stubbornly considers the first top level menu
// in a gorm file to be the application's main menu.
NSMenu *mainMenu = RETAIN([NSApp mainMenu]);
NS_DURING
{
return nil;
if(![self loadMyNibNamed:@"ScriptingMenu"])
{
[NSApp setMainMenu:mainMenu];
RELEASE(mainMenu);
return nil;
}
}
NS_HANDLER
{
[NSApp setMainMenu:mainMenu];
RELEASE(mainMenu);
[localException raise];
}
NS_ENDHANDLER
[NSApp setMainMenu:mainMenu];
RELEASE(mainMenu);
[scriptingMenu close];
}
return scriptingMenu;
}
/* FIXME: rewrite this */
- (void)updateObjectReferences
{
STEnvironment *env = [self actualScriptingEnvironment];
NSEnumerator *enumerator;
NSString *name;
NSString *object = nil;
NSString *reference;
id target;
target = [NSApp delegate];
enumerator = [objectRefereceDict keyEnumerator];
while( (name = [enumerator nextObject]) )
{
reference = [objectRefereceDict objectForKey:name];
NSLog(@"Adding reference '%@' object '%@'", name, reference);
NS_DURING
object = [target valueForKeyPath:reference];
[env setObject:object forName:name];
NS_HANDLER
if([[localException name] isEqualToString:NSUndefinedKeyException])
{
NSLog(@"Warning: Invalid object reference '%@'.", reference);
}
else
{
[localException raise];
}
NS_ENDHANDLER
}
}
/** Execute script <var>script</var> in actual scripting environment. If an
exception occured, it will be logged into the Transcript window. */
- (id)executeScript:(STScript *)script
- (id)executeScript:(STFileScript *)script
{
STEnvironment *env = [self actualScriptingEnvironment];
STEngine *engine;
@ -130,7 +185,7 @@
NSDebugLog(@"Execute a script '%@'", [script localizedName]);
engine = [STEngine engineForLanguageWithName:[script language]];
engine = [STEngine engineForLanguage:[script language]];
if(!engine)
{
@ -152,7 +207,7 @@
#ifndef DEBUG_EXCEPTIONS
NS_DURING
#endif
retval = [engine executeCode:[script source] inEnvironment:env];
retval = [engine interpretScript:[script source] inContext:env];
#ifndef DEBUG_EXCEPTIONS
NS_HANDLER
@ -181,8 +236,8 @@
NSString *error;
id retval = nil;
engine = [STEngine engineForLanguageWithName:
[STLanguage defaultLanguageName]];
engine = [STEngine engineForLanguage:
[[STLanguageManager defaultManager] defaultLanguage]];
if(!engine)
{
NSLog(@"Unable to get scripting engine.");
@ -199,7 +254,7 @@
[self updateObjectReferences];
NS_DURING
retval = [engine executeCode:source inEnvironment:env];
retval = [engine interpretScript:source inContext:env];
NS_HANDLER
error = [NSString stringWithFormat:
@"Error: "
@ -216,39 +271,4 @@
return retval;
}
/* FIXME: rewrite this */
- (void)updateObjectReferences
{
STEnvironment *env = [self actualScriptingEnvironment];
NSEnumerator *enumerator;
NSString *name;
NSString *object = nil;
NSString *reference;
id target;
target = [NSApp delegate];
enumerator = [objectRefereceDict keyEnumerator];
while( (name = [enumerator nextObject]) )
{
reference = [objectRefereceDict objectForKey:name];
NSLog(@"Adding reference '%@' object '%@'", name, reference);
NS_DURING
object = [target valueForKeyPath:reference];
[env setObject:object forName:name];
NS_HANDLER
if([[localException name] isEqualToString:NSUnknownKeyException])
{
NSLog(@"Warning: Invalid object reference '%@'.", reference);
}
else
{
[localException raise];
}
NS_ENDHANDLER
}
}
@end

View file

@ -27,7 +27,7 @@
#import <AppKit/NSPanel.h>
@class STScriptsManager;
@class STScript;
@class STFileScript;
@class NSPopUpButton;
@interface STScriptsPanel : NSPanel
@ -49,7 +49,7 @@
- (void) browse: (id)sender;
- (void) showHelp: (id)sender;
- (STScript *) selectedScript;
- (STFileScript *) selectedScript;
- (void) setDelegate: (id)anObject;
- (id) delegate;

View file

@ -26,7 +26,7 @@
#import "STScriptsPanel.h"
#import <StepTalk/STScript.h>
#import <StepTalk/STFileScript.h>
#import <StepTalk/STScriptsManager.h>
#import <AppKit/NSApplication.h>
@ -35,6 +35,7 @@
#import <AppKit/NSMatrix.h>
#import <AppKit/NSPopUpButton.h>
#import <AppKit/NSWorkspace.h>
#import <AppKit/NSGraphics.h>
#import "NSObject+NibLoading.h"
#import "STApplicationScriptingController.h"
@ -54,47 +55,58 @@ STScriptsPanel *sharedScriptsPanel = nil;
- init
{
NSView *view;
if(![self loadMyNibNamed:@"ScriptsPanel"])
if ((self = [super initWithContentRect:NSZeroRect
styleMask:NSTitledWindowMask
| NSClosableWindowMask
| NSResizableWindowMask
backing:NSBackingStoreRetained
defer:NO]) != nil)
{
[self dealloc];
return nil;
NSView *view;
NSRect frame;
if (![self loadMyNibNamed:@"ScriptsPanel"])
{
[self release];
return nil;
}
frame = [[(NSPanel *)_panel contentView] frame];
frame = [NSWindow frameRectForContentRect: frame
styleMask: [self styleMask]];
[self setFrame: frame display: NO];
[self setTitle:[_panel title]];
[self setFrame:[_panel frame] display:YES];
[self setHidesOnDeactivate:YES];
view = RETAIN([_panel contentView]);
[_panel setContentView:nil];
[self setContentView:view];
RELEASE(view);
RELEASE(_panel);
[self setFrameUsingName:@"STScriptsPanel"];
[self setFrameAutosaveName:@"STScriptsPanel"];
[scriptList setTarget:self];
[scriptList setAction:@selector(selectScript:)];
[scriptList setDoubleAction:@selector(run:)];
[scriptList setMaxVisibleColumns:1];
scriptsManager = RETAIN([STScriptsManager defaultManager]);
[self update:nil];
}
self = [super initWithContentRect:[[(NSPanel *)_panel contentView] frame]
styleMask:NSTitledWindowMask
| NSClosableWindowMask
| NSResizableWindowMask
backing:NSBackingStoreRetained
defer:NO];
[self setTitle:[_panel title]];
[self setFrame:[_panel frame] display:YES];
[self setHidesOnDeactivate:YES];
view = RETAIN([_panel contentView]);
[_panel setContentView:nil];
[self setContentView:view];
RELEASE(view);
RELEASE(_panel);
[self setFrameUsingName:@"STScriptsPanel"];
[self setFrameAutosaveName:@"STScriptsPanel"];
[scriptList setTarget:self];
[scriptList setAction:@selector(selectScript:)];
[scriptList setDoubleAction:@selector(run:)];
[scriptList setMaxVisibleColumns:1];
scriptsManager = [STScriptsManager defaultManager];
[self update:nil];
return self;
}
- (void) setDelegate:(id)anObject
- (void)dealloc
{
RELEASE(scripts);
RELEASE(scriptsManager);
[super dealloc];
}
- (void)setDelegate:(id)anObject
{
ASSIGN(delegate, anObject);
}
@ -112,7 +124,7 @@ STScriptsPanel *sharedScriptsPanel = nil;
}
- (void) run: (id)sender
{
STScript *script = [self selectedScript];
STFileScript *script = [self selectedScript];
if(script)
{
@ -122,9 +134,13 @@ STScriptsPanel *sharedScriptsPanel = nil;
- (void) selectScript: (id)sender
{
STScript *script = [self selectedScript];
STFileScript *script = [self selectedScript];
NSString *description = [script scriptDescription];
[descriptionText setString:[script scriptDescription]];
if (!description)
description = @"";
[descriptionText setString:description];
[runButton setEnabled:script ? YES : NO];
}
- (void)command:(id)sender
@ -138,9 +154,9 @@ STScriptsPanel *sharedScriptsPanel = nil;
}
- (void)browse:(id)sender
{
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
STScript *script = [self selectedScript];
NSString *path = [[script fileName] stringByDeletingLastPathComponent];
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
STFileScript *script = [self selectedScript];
NSString *path = [[script fileName] stringByDeletingLastPathComponent];
if(script)
{
@ -160,7 +176,7 @@ STScriptsPanel *sharedScriptsPanel = nil;
[self selectScript:nil];
}
- (STScript *)selectedScript
- (STFileScript *)selectedScript
{
if([scriptList selectedCell])
{
@ -172,15 +188,15 @@ STScriptsPanel *sharedScriptsPanel = nil;
}
}
- (int) browser: (NSBrowser *) sender
numberOfRowsInColumn: (int) column
- (NSInteger) browser: (NSBrowser *) sender
numberOfRowsInColumn: (NSInteger) column
{
return [scripts count];
}
- (void) browser: (NSBrowser *) sender
willDisplayCell: (NSBrowserCell *) cell
atRow: (int) row
column: (int) column
atRow: (NSInteger) row
column: (NSInteger) column
{
NSString *name;
if(sender != scriptList)

View file

@ -38,4 +38,5 @@
- show:(id)anObject;
- showLine:(id)anObject;
- showError:(NSString *)errorText;
- (NSWindow *)window;
@end

View file

@ -26,8 +26,6 @@
#import "STTranscript.h"
#import <StepTalk/STLanguage.h>
#import <AppKit/NSAttributedString.h>
#import <AppKit/NSColor.h>
#import <AppKit/NSTextView.h>
@ -77,19 +75,21 @@ static NSDictionary *normalTextAttributes;
- init
{
if(![self loadMyNibNamed:@"TranscriptWindow"])
if ((self = [super init]) != nil)
{
[self dealloc];
return nil;
if (![self loadMyNibNamed:@"TranscriptWindow"])
{
[self release];
return nil;
}
[window setTitle:@"Scripting Transcript"];
[window setFrameUsingName:@"STTranscriptWindow"];
[window setFrameAutosaveName:@"STTranscriptWindow"];
/* FIXME: Fix Gorm autoresizing */
// [textView setAutoresizingMask: NSViewHeightSizable | NSViewWidthSizable];
}
[window setTitle:@"Scripting Transcript"];
[window setFrameUsingName:@"STTranscriptWindow"];
[window setFrameAutosaveName:@"STTranscriptWindow"];
/* FIXME: Fix Gorm autoresizing */
// [textView setAutoresizingMask: NSViewHeightSizable | NSViewWidthSizable];
return self;
}
@ -136,6 +136,8 @@ static NSDictionary *normalTextAttributes;
attributes:errorTextAttributes];
[textView insertText:astring];
RELEASE(astring);
astring = [[NSAttributedString alloc] initWithString:@"\n"
attributes:normalTextAttributes];
[textView insertText:astring];

View file

@ -31,6 +31,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/NSOpenPanel.h>
#import <AppKit/NSDocumentController.h>
#import "ScriptPaper.h"
#import "ScriptPaperController.h"
@ -41,7 +42,7 @@
@implementation AppController
- init
{
[super init];
self = [super init];
return self;

View file

@ -1,8 +1,28 @@
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* AppController.m (-init):
* ScriptPaper.m (-init):
Check the result of the super class initializer and assign it to
self.
* ScriptPaper.m (-dealloc): Release environment attribute to fix space
leak.
* ScriptPaper.h (-doSelection:, -doAndShowSelection:): Move method
declarations from here ...
* ScriptPaperController.h (-doSelection:, -doAndShowSelection:):
... to here.
* ScriptPaper.m (-init, -executeScriptString:): Update to use current
framework classes and methods.
* ScriptPaperController.m (-doAndShowSelection:): Remove unused
variable.
2003 May 11 Stefan Urbanek <urbanek@host.sk>
* Added -Wno-import
* Added TODO
2003 May 4 Stefan Urbanek <urbanek@host.sk>
* Added application icon
@ -10,4 +30,4 @@
2003 May 4 Stefan Urbanek <urbanek@host.sk>
* ChangeLog started

View file

@ -23,6 +23,7 @@
#import "NSObject+NibLoading.h"
#import <Foundation/NSDictionary.h>
#import <AppKit/NSPanel.h>
@implementation NSObject(NibLoading)

View file

@ -30,6 +30,5 @@
{
STEnvironment *environment;
}
- (IBAction)doSelection:(id)sender;
- (IBAction)doAndShowSelection:(id)sender;
- (id)executeScriptString:(NSString *)source;
@end

View file

@ -30,21 +30,22 @@
#import <StepTalk/STEnvironment.h>
#import <StepTalk/STEngine.h>
#import <StepTalk/STLanguage.h>
#import <StepTalk/STLanguageManager.h>
#import "ScriptPaperController.h"
@implementation ScriptPaper
- init
{
[super init];
environment = [[STEnvironment alloc] initDefault];
if ((self = [super init]) != nil)
{
environment = [[STEnvironment alloc] initWithDefaultDescription];
}
return self;
}
- (void)dealloc
{
RELEASE(environment);
[super dealloc];
}
@ -63,8 +64,8 @@
NSString *error;
id retval = nil;
engine = [STEngine engineForLanguageWithName:
[STLanguage defaultLanguageName]];
engine = [STEngine engineForLanguage:
[[STLanguageManager defaultManager] defaultLanguage]];
if(!engine)
{
NSLog(@"Unable to get scripting engine.");
@ -78,7 +79,7 @@
}
NS_DURING
retval = [engine executeCode:source inEnvironment:environment];
retval = [engine interpretScript:source inContext:environment];
NS_HANDLER
error = [NSString stringWithFormat:
@"Error: "

View file

@ -34,5 +34,7 @@
{
NSTextView *sourceView;
}
- (IBAction)doSelection:(id)sender;
- (IBAction)doAndShowSelection:(id)sender;
@end

View file

@ -66,14 +66,13 @@
NSString *selectedString = [sourceView selectedString];
NSRange range;
id string;
int length;
id retval = nil;
NSLog(@"Do and Show!");
retval = [[self document] executeScriptString:selectedString];
if(!retval)
if (!retval)
{
retval = @"(nil)";
}
@ -83,7 +82,7 @@
[sourceView setSelectedRange:range];
if([retval isKindOfClass:[NSString class]]
if ([retval isKindOfClass:[NSString class]]
|| [retval isKindOfClass:[NSAttributedString class]])
{
string = retval;

463
ChangeLog
View file

@ -1,3 +1,466 @@
2020-06-29 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/GNUmakefile: Specify dependent libraries
while linking regardless of the target OS.
2018-03-20 Graham Lee <graham@iamleeg.com>
* Documentation/HowTo.txt: Document methods that still exist.
* Frameworks/StepTalk/STEngine.m (engineForLanguageWithName:):
* Languages/Smalltalk/SmalltalkEngine.m (multiple methods):
Correct spelling of 'deprecated' in log messages.
2018-02-18 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STObjCRuntime.m (selector_types): Fix for
generation of selector types on 64-bit architectures.
2017-12-27 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STEnvironmentDescription.m
(defaultDescriptionName): Remove redundant method call.
* Frameworks/StepTalk/STBundleInfo.m (allFrameworkNames,
pathForFrameworkWithName:):
* Tools/STExecutor.m (executeScript:withArguments:): Use NULL
instead of NO where a pointer argument is expected.
* Frameworks/StepTalk/STConversation.m (knownLanguages,
interpretScript:):
* Frameworks/StepTalk/STRemoteConversation.m (interpretScript:):
* Frameworks/StepTalk/STUndefinedObject.m (release):
Fix inconsistent distributed object modifiers reported by clang.
2015-10-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STObjCRuntime.m (selector_types): Fix broken
array initialization, which meant that incorrect method signatures
were generated for methods with more than four arguments.
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STRemoteConversation.m
(-initWithEnvironmentName:host:language:, -open,
-setLanguage:, -language): Correctly initialize the scripting
language used in a remote conversation.
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STRemoteConversation.m (-open): Force use of
a socket port name server to look up servers on other hosts.
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STRemoteConversation.m (-connectionDidDie:):
Fix leak of the proxy and environmentProcess attributes when a
connection died.
2014-11-01 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/NSObject+additions.h (-notEqual:, -notSame:):
* Frameworks/StepTalk/NSObject+additions.m (-notEqual:, -notSame:):
Add method implementations for the symbolic selectors ~= and ~~,
which are defined in the SymbolicSelectors.stenv environment.
2014-11-01 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STClassInfo.m (-dealloc): Release superclass
and superclassName attributes.
* Frameworks/StepTalk/STEnvironment.m (-initWithDescription:):
Remove duplicated RETAIN statement.
2013-05-27 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/NSInvocation+additions.m
(STGetValueOfTypeFromObject): Fix marshaling for arguments with
type (char*).
* Frameworks/StepTalk/NSInvocation+additions.m
(STObjectFromValueOfType, STGetValueOfTypeFromObject): Skip const
qualifiers in types.
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:
* Examples/Shell/STShell+output.m:
* Examples/Shell/stshell_tool.m:
int->NSInteger transition
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/AppKit/AppKitConstants.list:
* Modules/AppKit/AppKitConstants.m:
* Modules/AppKit/AppKitEvents.list:
* Modules/AppKit/AppKitEvents.m:
* Modules/AppKit/AppKitExceptions.m:
* Modules/AppKit/AppKitNotifications.m:
* Modules/AppKit/header.m:
* Modules/Foundation/FoundationConstants.list:
* Modules/Foundation/FoundationConstants.m:
* Modules/Foundation/header.m:
* Modules/GDL2/header.m:
* Modules/SQLClient/SQLClientConstants.m:
* Modules/SQLClient/header.m:
* Modules/WebServices/WebServicesConstants.m:
* Modules/WebServices/header.m:
int->NSInteger transition
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/NSInvocation+additions.h:
* Frameworks/StepTalk/NSInvocation+additions.m:
* Frameworks/StepTalk/NSNumber+additions.h:
* Frameworks/StepTalk/NSNumber+additions.m:
* Frameworks/StepTalk/STActor.m:
* Frameworks/StepTalk/STEnvironmentDescription.h:
* Frameworks/StepTalk/STEnvironmentDescription.m:
* Frameworks/StepTalk/STLanguageManager.m:
* Frameworks/StepTalk/STObjCRuntime.m:
* Frameworks/StepTalk/STScriptObject.m:
* Frameworks/StepTalk/STStructure.h:
* Frameworks/StepTalk/STStructure.m:
int->NSInteger transition
2013-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STActor.m (-setValue:forKey:): Fix bug where
instance variables of an actor got lost when set to nil.
2013-04-04 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/NSObject+additions.h (-yourself):
* Frameworks/StepTalk/NSObject+additions.m (-yourself): Add
standard Smalltalk method, which is convenient in cascades.
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* Tools/STEnvironmentProcess.m (-initWithDescriptionName:):
Check the result of the super class initializer and assign it to
self.
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STActor.m (-init, -initWithEnvironment:,
-initWithCoder:):
* Frameworks/StepTalk/STBehaviourInfo.m (-initWithName:):
* Frameworks/StepTalk/STClassInfo.m (-initWithName:):
* Frameworks/StepTalk/STContext.m (-init):
* Frameworks/StepTalk/STConversation.m (-initWithContext:language:):
* Frameworks/StepTalk/STDistantConversation.m
(-initWithEnvironment:language:):
* Frameworks/StepTalk/STDistantEnvironment.m (-initWithName:host:):
* Frameworks/StepTalk/STEnvironment.m (-initWithDescription:):
* Frameworks/StepTalk/STFileScript.m (-initWithFile:):
* Frameworks/StepTalk/STLanguageManager.m (-init):
* Frameworks/StepTalk/STObjectReference.m (-initWithIdentifier:target:):
* Frameworks/StepTalk/STRemoteConversation.m
(-initWithEnvironmentName:host:language:):
* Frameworks/StepTalk/STScript.m (-initWithSource:language:):
* Frameworks/StepTalk/STScriptObject.m (-init, -initWithCoder:):
* Frameworks/StepTalk/STScriptsManager.m (-initWithDomainName:):
* Frameworks/StepTalk/STSelector.m (-initWithName:,
-initWithSelector:, -initWithCoder:):
* Frameworks/StepTalk/STStructure.m (-initWithValue:type:):
Check the result of the super class initializer and assign it to
self.
2013-02-08 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/Environments/StepTalk.stenv:
Define standard Smalltalk methods for invoking blocks with arguments.
2012-11-03 Wolfgang Lux <wolfgang.lux@gmail.com>
* Examples/Developer/StepUnit.st: Fix typo in method name and stop
using deprecated methods.
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:,
-conversationWithEnvironment:language:, -initWithEnvironment:language:,
-environment):
* Frameworks/StepTalk/STEnvironmentDescription.m
(defaultEnvironmentDescriptionName):
Fix typos and spacing in warning messages.
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/GNUmakefile:
* Modules/WebServices/Functions.h:
* Modules/WebServices/Functions.m:
* Modules/WebServices/GNUmakefile:
* Modules/WebServices/STWebServicesModule.h:
* Modules/WebServices/STWebServicesModule.m:
* Modules/WebServices/ScriptingInfo.plist:
* Modules/WebServices/WebServicesConstants.list:
* Modules/WebServices/WebServicesConstants.m:
* Modules/WebServices/create_constants.awk:
* Modules/WebServices/footer.m:
* Modules/WebServices/header.m:
Add WebServices bundle. Must be requested explicitly by adding
webservices=yes to the make command line.
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/GNUmakefile:
* Modules/SQLClient/Functions.h:
* Modules/SQLClient/Functions.m:
* Modules/SQLClient/GNUmakefile:
* Modules/SQLClient/SQLClient+additions.m:
* Modules/SQLClient/SQLClientConstants.list:
* Modules/SQLClient/SQLClientConstants.m:
* Modules/SQLClient/STSQLClientModule.h:
* Modules/SQLClient/STSQLClientModule.m:
* Modules/SQLClient/ScriptingInfo.plist:
* Modules/SQLClient/create_constants.awk:
* Modules/SQLClient/footer.m:
* Modules/SQLClient/header.m:
Add SQLClient bundle. Must be requested explicitly by adding
sqlclient=yes to the make command line.
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/AppKit/GNUmakefile:
* Modules/Foundation/GNUmakefile:
* Modules/GDL2/GNUmakefile:
* Modules/ObjectiveC/GNUmakefile:
* Modules/SimpleTranscript/GNUmakefile:
Fix Makefile variables (bundle.make uses BUNDLE_LIBS, not
ADDITIONAL_BUNDLE_LIBS).
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STBundleInfo.m (-_bundleDidLoad:): Add
missing argument in NSLog call detected by clang.
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STEnvironment.m (-registerObjectFinderNamed:):
* Frameworks/StepTalk/STEnvironmentDescription.m
(-updateFromDictionary:, -updateBehavioursFromDictionary:,
-updateClassWithName:description:):
* Frameworks/StepTalk/STFileScript.m (-source):
* Frameworks/StepTalk/STObjCRuntime.m (STAllObjectiveCSelectors):
* Tools/STExecutor.m (-executeScript:withArguments:):
* Tools/stalk.m (-createConversation, main):
* Tools/stenvironment.m (main): Fix potential space leaks detected
by clang.
* Frameworks/StepTalk/STBundleInfo.m (+stepTalkBundleNames): Fix
double release detected by clang.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STStructure.h:
* Frameworks/StepTalk/STStructure.m (+structureWithOrigin:size:,
extent:, corner:): New methods to construct rectangles from points
and sizes.
* TODO: Update.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/AppKit/AppKitConstants.list: Remove obsolete NSDataLink
constants.
* Modules/AppKit/AppKitConstants.m: Regenerated.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Documentation/ApplicationScripting.txt: Fix errors.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STEngine.h (-methodFromSource:...):
* Frameworks/StepTalk/STEngine.m (-methodFromSource:...):
STMethod is a protocol not a class.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STObjCRuntime.m (STSelectorTypes,
STSelectorFromString, STCreateTypedSelector,
STConstructMethodSignatureForSelector): Add special case to
register selectors of (Smalltalk) binary operators with one
argument instead of zero.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STObjCRuntime.m (STSelectorFromString):
Always register typed selectors, since forwarding to untyped
selectors stopped working a while back in GNUstep.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/NSInvocation+additions.m:
* Frameworks/StepTalk/STStructure.m:
* Modules/ObjectiveC/NSObject+additions.m:
* Modules/ObjectiveC/ObjectiveCRuntime.m:
Clean up imports removing includes of Objective-C runtime headers.
Also replace a few more deprecated Objective-C runtime calls.
2011-04-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/ObjectiveC/ObjectiveCRuntime.m (-allClasses):
* Modules/ObjectiveC/NSObject+additions.m (methods_for_class,
ivars_for_class, +methodNames): Update to Objective-C 2 API.
2011-04-06 Richard Frith-Macdonald <rfm@gnu.org>
* Frameworks/StepTalk/STObjCRuntime.m: replace runtime specific typed
selector code with the standard gnustep functions.
2011-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STLanguageManager.m (-dealloc): Fix
typo. (Was calling -dealloc on self instead of super).
2011-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STObjCRuntime.m (STAllObjectiveCClasses,
STCreateTypedSelector, STConstructMethodSignatureForSelector,
selectors_from_list, STAllObjectiveCSelectors): Update to
Objective-C 2 API.
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/Environments/StepTalk.stenv: Add missing
semicolon at end of plist dictionary.
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Frameworks/StepTalk/STUndefinedObject.m (-forwardInvocation:):
Clear result buffer to prevent crashes under GNUstep when the
invoked method's result type is an object type.
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Modules/AppKit/GNUmakefile: Add header.m and footer.m to
dependencies of %.list -> %.m rule.
* Modules/AppKit/header.m (STGet@@NAME@@): Use local variable to
get rid of compiler warning.
* Modules/AppKit/AppKitNotifications.list: Update AppKit
notification list to match recent change in gui.
* Modules/AppKit/AppKitConstants.m:
* Modules/AppKit/AppKitEvents.m:
* Modules/AppKit/AppKitNotifications.m:
Regenerated.
2008 Okt 28 Samuel Harvey
* Modules/GDL2/GNUmakefile: Use ADDITIONAL_NATIVE_LIBS instead of
GDL2_BUNDLE_LIBS to link GDL2 packages.
2007 Feb 14 Nicola Pero
* All GNUmakefiles in the project: Use GNUSTEP_LIBRARY
instead of GNUSTEP_INSTALLATION_DIR/Library.
2005 Sep 5 Stefan Urbanek
* Version 0.10.0
2005 Sep 5 Stefan Urbanek
* Frameworks/StepTalk: compiler warnings removed
2005 Aug 30 Stefan Urbanek
* STLanguageManager: new class
* STLanguage: removed
* STEngine: engineForLanguageWithName: and engineForFileType: removed, use
STLanguageManager instead, added engineForLanguage:
* Tools/stexec - updated to use STLanguageManager
* Tools/stupdate_languages - removed as it was replaced by STLanguageManager
* Examples/Server - removed as it was replaced by stenvironment and distant
scripting
Notes:
- you can delete */Library/StepTalk/Configuration directories
2005 Aug 17 Stefan Urbanek
* STConversation: renamed run* method to interpret*, interpretScript: does
not return value anymore (because of distant conversations), new methods
result and resultByCopy were added
* STEnvironment: removed depreciated methods
* STDistantConversation: new class for conversations with distant objects
* Tools/stenvironment: new tool for semi-persistent scripting environments
* Tools/stexec: added reading from stdin; reflect library changes
* Tools/stalk: removed
* STEngine: renamed methods (see STEngine.h for more information)
2005 June 30
Version 0.9.1
2005 June 30
* STActor: new class
* Examples/Smalltalk/actor - new actor example
2005 June 19
Version 0.9.0
2005 June 19 Stefan Urbanek
* STEnvironment: search class name namespace when no object is found for
given name and full scripting is enabled.
2005 Jan 4 Stefan Urbanek
* First step of introducing contexts
NOTE: This version is unstable.
2004 Nov 9 Stefan Urbanek
* Remove STMethodSignatureForSelector as it was deprecated because of
inportability to OSX.
2004 Sep 23 Stefan Urbanek
* STContext: new class
* STEnvironment: make it subclass of STContext, move several methods
2004 Sep 6 Stefan Urbanek
* stshell: fix for compiler
* added missing STEnvironmentDescription installation
2004 Aug 2 Stefan Urbanek
* Search for scripts in */Library/Scripts/*
* stexec: use scripts manager to look for scripts in default locations. For
this tool it is .../Library/Scripts/Shell or .../Library/StepTalk/Scripts/Shell
2004 Jul 26 Stefan Urbanek
* Added NSString containsString: to Foundation module.
2004 Jun 27 Stefan Urbanek
* Added examples:

View file

@ -18,11 +18,11 @@ Creating a scriptable application
2 Make classes available in ScriptingInfo.plist:
{
STClasses =
{
Classes =
(
MessageComposition,
InternetAddress
};
);
}
Add this line to your makefile:
@ -48,12 +48,11 @@ Creating a scriptable application
...
if([NSApp isScriptingSupported])
{
[menu addItemWithTitle: @"Scripting"
action: NULL
keyEquivalent: @""];
[menu setSubmenu: [NSApp scriptingMenu]
forItem: [menu itemWithTitle:@"Scripting"]];
NSMenuItem *scriptingItem =
[menu addItemWithTitle: @"Scripting"
action: NULL
keyEquivalent: @""];
[scriptingItem setSubmenu: [NSApp scriptingMenu]];
}
...
@ -112,7 +111,7 @@ The file is dictionary property list. Kes are:
French = {
Name = "Some name in french";
Description = "Some description in french";
}
};
}
Example
@ -129,7 +128,7 @@ Example
{
Description = "This is a script for testing if scripting works";
Name = "Test";
}
};
}
3. Put both files into */Library/StepTalk/Scripts/your_application_name

View file

@ -11,9 +11,11 @@ How to create scripting environment?
STEnvironment *env;
env = [STEnvironment defaultScriptingEnvironment];
env = [STEnvironment sharedEnvironment];
or
env = [STEnvironment environmentWithDescriptionName:envName];
env = [STEnvironment environmentWithDefaultDescription];
or
env = [STEnvironment environmentWithDescription:description];
How to register named objects in the scripting environment?
@ -25,16 +27,16 @@ like in:
[env setObject:transcript forName:@"Transcript"];
See: STEnvironment
See: STEnvironment, STContext
How to create a scripting engine?
---------------------------------
STEngine *engine;
engine = [STEngine engineForLanguageWithName:langName];
engine = [STEngine engineForLanguage:langName];
See: STLanguage, STEngine
See: STLanguageManager, STEngine
How to execute a code?
--------------------
@ -43,7 +45,7 @@ How to execute a code?
id result;
NS_DURING
result = [engine executeCode:string inEnvironment:env];
result = [engine interpretScript:string inContext:env];
NS_HANDLER
/* handle the exception */
NS_ENDHANDLER

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="NSInvocation+additions" up="StepTalk">
<head>
<title>NSInvocation class additions</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>

View file

@ -4,12 +4,13 @@
<title>NSInvocation class additions</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$NSInvocation+additions">NSInvocation class additions</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -48,14 +49,14 @@
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation+invocationWithTarget:selector:">+invocationWithTarget:selector:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation+invocationWithTarget:selectorName:">+invocationWithTarget:selectorName:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-getArgumentAsObjectAtIndex:">-getArgumentAsObjectAtIndex:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-returnValueAsObject">-returnValueAsObject</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-setArgumentAsObject:atIndex:">-setArgumentAsObject:atIndex:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)+invocationWithTarget:selector:">+invocationWithTarget:selector:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">+invocationWithTarget:selectorName:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">-getArgumentAsObjectAtIndex:</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-returnValueAsObject">-returnValueAsObject</a></li>
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">-setArgumentAsObject:atIndex:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selector:">invocationWithTarget:selector:</a></h3>
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selector:">invocationWithTarget:&nbsp;selector:&nbsp;</a></h3>
+ (id) <b>invocationWithTarget:</b> (id)target<b> selector:</b> (SEL)selector;<br />
<p>
@ -63,7 +64,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">invocationWithTarget:selectorName:</a></h3>
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">invocationWithTarget:&nbsp;selectorName:&nbsp;</a></h3>
+ (id) <b>invocationWithTarget:</b> (id)target<b> selectorName:</b> (NSString*)selectorName;<br />
<p>
@ -71,7 +72,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">getArgumentAsObjectAtIndex:</a></h3>
<h3><a name="method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">getArgumentAsObjectAtIndex:&nbsp;</a></h3>
- (id) <b>getArgumentAsObjectAtIndex:</b> (int)anIndex;<br />
<p>
@ -79,7 +80,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSInvocation(STAdditions)-returnValueAsObject">returnValueAsObject</a></h3>
<h3><a name="method$NSInvocation(STAdditions)-returnValueAsObject">returnValueAsObject&nbsp;</a></h3>
- (id) <b>returnValueAsObject</b>;<br />
<p>
@ -87,7 +88,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">setArgumentAsObject:atIndex:</a></h3>
<h3><a name="method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">setArgumentAsObject:&nbsp;atIndex:&nbsp;</a></h3>
- (void) <b>setArgumentAsObject:</b> (id)anObject<b> atIndex:</b> (int)anIndex;<br />
<p>
@ -118,5 +119,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="NSObject+additions" up="StepTalk">
<head>
<title>NSObject+additions autogsdoc generated documentation</title>
<author name="Generated by me"></author>
<title>NSObject+additions documentation</title>
<author name="Generated by stevko"></author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>

View file

@ -1,15 +1,16 @@
<html>
<head>
<title>NSObject+additions autogsdoc generated documentation</title>
<title>NSObject+additions documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$NSObject+additions">NSObject+additions autogsdoc generated documentation</a></h1>
<h1><a name="title$NSObject+additions">NSObject+additions documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Generated by me</dt>
<dt>Generated by stevko</dt>
<dd>
</dd>
</dl>
@ -36,12 +37,12 @@
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-isNil">-isNil</a></li>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-isSame:">-isSame:</a></li>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-notNil">-notNil</a></li>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-isNil">-isNil</a></li>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-isSame:">-isSame:</a></li>
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-notNil">-notNil</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$NSObject(STAdditions)-isNil">isNil</a></h3>
<h3><a name="method$NSObject(STAdditions)-isNil">isNil&nbsp;</a></h3>
- (BOOL) <b>isNil</b>;<br />
<p>
@ -49,7 +50,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSObject(STAdditions)-isSame:">isSame:</a></h3>
<h3><a name="method$NSObject(STAdditions)-isSame:">isSame:&nbsp;</a></h3>
- (BOOL) <b>isSame:</b> (id)anObject;<br />
<p>
@ -57,7 +58,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSObject(STAdditions)-notNil">notNil</a></h3>
<h3><a name="method$NSObject(STAdditions)-notNil">notNil&nbsp;</a></h3>
- (BOOL) <b>notNil</b>;<br />
<p>
@ -67,5 +68,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -0,0 +1,109 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STActor" up="StepTalk">
<head>
<title>STActor class documentation</title>
<author name="Stefan Urbanek">
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STActor class
</heading>
<class name="STActor" super="NSObject">
<declared>StepTalk/STActor.h</declared>
<conform>NSCoding</conform>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="STEnvironment*" name="environment" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="ivars" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="methodDictionary" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>actorInEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<desc>
Return new instance of script object without any
instance variables
</desc>
</method>
<method type="void">
<sel>addMethod:</sel>
<arg type="id&lt;STMethod&gt;">aMethod</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="STEnvironment*">
<sel>environment</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initWithEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSDictionary*">
<sel>methodDictionary</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>methodNames</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id&lt;STMethod&gt;">
<sel>methodWithName:</sel>
<arg type="NSString*">aName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>removeMethod:</sel>
<arg type="id&lt;STMethod&gt;">aMethod</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>removeMethodWithName:</sel>
<arg type="NSString*">aName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<desc>
Set object's environment. Note: This method should be
replaced by some other, more clever mechanism.
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,173 @@
<html>
<head>
<title>STActor class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STActor">STActor class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the STActor class
</a></h1>
<h2><a name="class$STActor">STActor</a> : NSObject</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STActor.h</dd>
</dl>
</blockquote>
<blockquote>
<dl>
<dt><b>Conforms to:</b></dt>
<dd>NSCoding</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STActor_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STActor.html#method$STActor+actorInEnvironment:">+actorInEnvironment:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-addMethod:">-addMethod:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-environment">-environment</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-initWithEnvironment:">-initWithEnvironment:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodDictionary">-methodDictionary</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodNames">-methodNames</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodWithName:">-methodWithName:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-removeMethod:">-removeMethod:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-removeMethodWithName:">-removeMethodWithName:</a></li>
<li><a rel="gsdoc" href="STActor.html#method$STActor-setEnvironment:">-setEnvironment:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STActor+actorInEnvironment:">actorInEnvironment:&nbsp;</a></h3>
+ (id) <b>actorInEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<p>
Return new instance of script object without any
instance variables
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-addMethod:">addMethod:&nbsp;</a></h3>
- (void) <b>addMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-environment">environment&nbsp;</a></h3>
- (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*) <b>environment</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-initWithEnvironment:">initWithEnvironment:&nbsp;</a></h3>
- (id) <b>initWithEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-methodDictionary">methodDictionary&nbsp;</a></h3>
- (NSDictionary*) <b>methodDictionary</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-methodNames">methodNames&nbsp;</a></h3>
- (NSArray*) <b>methodNames</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-methodWithName:">methodWithName:&nbsp;</a></h3>
- (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>) <b>methodWithName:</b> (NSString*)aName;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-removeMethod:">removeMethod:&nbsp;</a></h3>
- (void) <b>removeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-removeMethodWithName:">removeMethodWithName:&nbsp;</a></h3>
- (void) <b>removeMethodWithName:</b> (NSString*)aName;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STActor-setEnvironment:">setEnvironment:&nbsp;</a></h3>
- (void) <b>setEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<p>
Set object&apos;s environment. Note: This method should be
replaced by some other, more clever mechanism.
</p>
<hr width="25%" align="left" />
<a name="_STActor_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STActor Class</h2>
<h3><a name="ivariable$STActor*environment">environment</a></h3>
@protected STEnvironment* <b>environment</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STActor*ivars">ivars</a></h3>
@protected NSMutableDictionary* <b>ivars</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STActor*methodDictionary">methodDictionary</a></h3>
@protected NSMutableDictionary* <b>methodDictionary</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STBundleInfo" up="StepTalk">
<head>
<title>STBundleInfo class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
@ -21,6 +18,41 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSArray*" name="allClasses" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSBundle*" name="bundle" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSDictionary*" name="objectReferenceDictionary" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSArray*" name="publicClasses" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="Class" name="scriptingInfoClass" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="scriptingInfoClassName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="BOOL" name="useAllClasses" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>infoForBundle:</sel>
<arg type="NSBundle*">aBundle</arg>

View file

@ -4,12 +4,13 @@
<title>STBundleInfo class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STBundleInfo">STBundleInfo class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -45,6 +46,9 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STBundleInfo_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STBundleInfo.html#method$STBundleInfo+infoForBundle:">+infoForBundle:</a></li>
@ -55,7 +59,7 @@
<li><a rel="gsdoc" href="STBundleInfo.html#method$STBundleInfo-publicClassNames">-publicClassNames</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STBundleInfo+infoForBundle:">infoForBundle:</a></h3>
<h3><a name="method$STBundleInfo+infoForBundle:">infoForBundle:&nbsp;</a></h3>
+ (id) <b>infoForBundle:</b> (NSBundle*)aBundle;<br />
<p>
@ -63,7 +67,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STBundleInfo-allClassNames">allClassNames</a></h3>
<h3><a name="method$STBundleInfo-allClassNames">allClassNames&nbsp;</a></h3>
- (NSArray*) <b>allClassNames</b>;<br />
<p>
@ -71,7 +75,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STBundleInfo-initWithBundle:">initWithBundle:</a></h3>
<h3><a name="method$STBundleInfo-initWithBundle:">initWithBundle:&nbsp;</a></h3>
- (id) <b>initWithBundle:</b> (NSBundle*)aBundle;<br />
This is a designated initialiser for the class.<br />
<p>
@ -80,7 +84,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STBundleInfo-namedObjects">namedObjects</a></h3>
<h3><a name="method$STBundleInfo-namedObjects">namedObjects&nbsp;</a></h3>
- (NSDictionary*) <b>namedObjects</b>;<br />
<p>
@ -90,7 +94,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STBundleInfo-objectReferenceDictionary">objectReferenceDictionary</a></h3>
<h3><a name="method$STBundleInfo-objectReferenceDictionary">objectReferenceDictionary&nbsp;</a></h3>
- (NSDictionary*) <b>objectReferenceDictionary</b>;<br />
<p>
@ -101,7 +105,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STBundleInfo-publicClassNames">publicClassNames</a></h3>
<h3><a name="method$STBundleInfo-publicClassNames">publicClassNames&nbsp;</a></h3>
- (NSArray*) <b>publicClassNames</b>;<br />
<p>
@ -109,6 +113,65 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<a name="_STBundleInfo_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STBundleInfo Class</h2>
<h3><a name="ivariable$STBundleInfo*allClasses">allClasses</a></h3>
@protected NSArray* <b>allClasses</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*bundle">bundle</a></h3>
@protected NSBundle* <b>bundle</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*objectReferenceDictionary">objectReferenceDictionary</a></h3>
@protected NSDictionary* <b>objectReferenceDictionary</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*publicClasses">publicClasses</a></h3>
@protected NSArray* <b>publicClasses</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*scriptingInfoClass">scriptingInfoClass</a></h3>
@protected Class <b>scriptingInfoClass</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*scriptingInfoClassName">scriptingInfoClassName</a></h3>
@protected NSString* <b>scriptingInfoClassName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STBundleInfo*useAllClasses">useAllClasses</a></h3>
@protected BOOL <b>useAllClasses</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="002000000000">
Software documentation for the NSBundle(STAdditions)
@ -128,15 +191,15 @@ This is a designated initialiser for the class.<br />
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+allFrameworkNames">+allFrameworkNames</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+bundleForFrameworkWithName:">+bundleForFrameworkWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+pathForFrameworkWithName:">+pathForFrameworkWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+stepTalkBundleNames">+stepTalkBundleNames</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+stepTalkBundleWithName:">+stepTalkBundleWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle-scriptingInfoDictionary">-scriptingInfoDictionary</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+allFrameworkNames">+allFrameworkNames</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+bundleForFrameworkWithName:">+bundleForFrameworkWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+pathForFrameworkWithName:">+pathForFrameworkWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+stepTalkBundleNames">+stepTalkBundleNames</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+stepTalkBundleWithName:">+stepTalkBundleWithName:</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)-scriptingInfoDictionary">-scriptingInfoDictionary</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$NSBundle(STAdditions)+allFrameworkNames">allFrameworkNames</a></h3>
<h3><a name="method$NSBundle(STAdditions)+allFrameworkNames">allFrameworkNames&nbsp;</a></h3>
+ (NSArray*) <b>allFrameworkNames</b>;<br />
<p>
@ -145,7 +208,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSBundle(STAdditions)+bundleForFrameworkWithName:">bundleForFrameworkWithName:</a></h3>
<h3><a name="method$NSBundle(STAdditions)+bundleForFrameworkWithName:">bundleForFrameworkWithName:&nbsp;</a></h3>
+ (NSBundle*) <b>bundleForFrameworkWithName:</b> (NSString*)aName;<br />
<p>
@ -154,7 +217,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSBundle(STAdditions)+pathForFrameworkWithName:">pathForFrameworkWithName:</a></h3>
<h3><a name="method$NSBundle(STAdditions)+pathForFrameworkWithName:">pathForFrameworkWithName:&nbsp;</a></h3>
+ (NSString*) <b>pathForFrameworkWithName:</b> (NSString*)aName;<br />
<p>
@ -163,7 +226,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleNames">stepTalkBundleNames</a></h3>
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleNames">stepTalkBundleNames&nbsp;</a></h3>
+ (NSArray*) <b>stepTalkBundleNames</b>;<br />
<p>
@ -172,7 +235,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleWithName:">stepTalkBundleWithName:</a></h3>
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleWithName:">stepTalkBundleWithName:&nbsp;</a></h3>
+ (id) <b>stepTalkBundleWithName:</b> (NSString*)moduleName;<br />
<p>
@ -180,7 +243,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$NSBundle(STAdditions)-scriptingInfoDictionary">scriptingInfoDictionary</a></h3>
<h3><a name="method$NSBundle(STAdditions)-scriptingInfoDictionary">scriptingInfoDictionary&nbsp;</a></h3>
- (NSDictionary*) <b>scriptingInfoDictionary</b>;<br />
<p>
@ -190,5 +253,6 @@ This is a designated initialiser for the class.<br />
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -0,0 +1,154 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STContext" up="StepTalk">
<head>
<title>STEnvironment class reference</title>
<author name="Stefan Urbanek">
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STContext class
</heading>
<class name="STContext" super="NSObject">
<declared>StepTalk/STContext.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="BOOL" name="createsUnknownObjects" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="BOOL" name="fullScripting" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="objectDictionary" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="STContext*" name="parentContext" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="void">
<sel>addNamedObjectsFromDictionary:</sel>
<arg type="NSDictionary*">dict</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="BOOL">
<sel>createsUnknownObjects</sel>
<desc>
Returns <code>YES</code> if unknown objects are
being created.
</desc>
</method>
<method type="BOOL">
<sel>fullScriptingEnabled</sel>
<desc>
Returns <code>YES</code> if full scripting is
enabled.
</desc>
</method>
<method type="NSArray*">
<sel>knownObjectNames</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSMutableDictionary*">
<sel>objectDictionary</sel>
<desc>
Returns a dictionary of all named objects in the
environment.
</desc>
</method>
<method type="STObjectReference*">
<sel>objectReferenceForObjectWithName:</sel>
<arg type="NSString*">name</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>objectWithName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Return object with name <var>objName</var>. 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, <var><code>nil</code></var> is returned.
</desc>
</method>
<method type="STContext*">
<sel>parentContext</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>removeObjectWithName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Remove object named <var>objName</var>.
</desc>
</method>
<method type="void">
<sel>setCreatesUnknownObjects:</sel>
<arg type="BOOL">flag</arg>
<desc>
<p>
Enable or disable creation of unknown objects.
Normally you get <code>nil</code> if you request
for non-existant object. If <var>flag</var> is
<code>YES</code> then by requesting non-existant
object, name for that object is created and it is
set no STNil.
</p>
<p>
Note: This method will be probably removed (moved
to Smalltalk language bundle).
</p>
</desc>
</method>
<method type="void">
<sel>setFullScriptingEnabled:</sel>
<arg type="BOOL">flag</arg>
<desc>
Full scripting <br /> Enable or disable full
scripting. When full scripting is enabled, you
may send any message to any object.
</desc>
</method>
<method type="void">
<sel>setObject:</sel>
<arg type="id">anObject</arg>
<sel>forName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Register object <var>anObject</var> with name
<var>objName</var>.
</desc>
</method>
<method type="void">
<sel>setParentContext:</sel>
<arg type="STContext*">context</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,232 @@
<html>
<head>
<title>STEnvironment class reference</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STContext">STEnvironment class reference</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the STContext class
</a></h1>
<h2><a name="class$STContext">STContext</a> : NSObject</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STContext.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STContext_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STContext.html#method$STContext-addNamedObjectsFromDictionary:">-addNamedObjectsFromDictionary:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-createsUnknownObjects">-createsUnknownObjects</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-fullScriptingEnabled">-fullScriptingEnabled</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-knownObjectNames">-knownObjectNames</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectDictionary">-objectDictionary</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectReferenceForObjectWithName:">-objectReferenceForObjectWithName:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectWithName:">-objectWithName:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-parentContext">-parentContext</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-removeObjectWithName:">-removeObjectWithName:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-setCreatesUnknownObjects:">-setCreatesUnknownObjects:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-setFullScriptingEnabled:">-setFullScriptingEnabled:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-setObject:forName:">-setObject:forName:</a></li>
<li><a rel="gsdoc" href="STContext.html#method$STContext-setParentContext:">-setParentContext:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STContext-addNamedObjectsFromDictionary:">addNamedObjectsFromDictionary:&nbsp;</a></h3>
- (void) <b>addNamedObjectsFromDictionary:</b> (NSDictionary*)dict;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-createsUnknownObjects">createsUnknownObjects&nbsp;</a></h3>
- (BOOL) <b>createsUnknownObjects</b>;<br />
<p>
Returns <code>YES</code> if unknown objects are
being created.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-fullScriptingEnabled">fullScriptingEnabled&nbsp;</a></h3>
- (BOOL) <b>fullScriptingEnabled</b>;<br />
<p>
Returns <code>YES</code> if full scripting is
enabled.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-knownObjectNames">knownObjectNames&nbsp;</a></h3>
- (NSArray*) <b>knownObjectNames</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-objectDictionary">objectDictionary&nbsp;</a></h3>
- (NSMutableDictionary*) <b>objectDictionary</b>;<br />
<p>
Returns a dictionary of all named objects in the
environment.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-objectReferenceForObjectWithName:">objectReferenceForObjectWithName:&nbsp;</a></h3>
- (<a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a>*) <b>objectReferenceForObjectWithName:</b> (NSString*)name;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-objectWithName:">objectWithName:&nbsp;</a></h3>
- (id) <b>objectWithName:</b> (NSString*)objName;<br />
<p>
Return object with name <var>objName</var>. 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, <var><code>nil</code></var> is returned.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-parentContext">parentContext&nbsp;</a></h3>
- (<a rel="gsdoc" href="#class$STContext">STContext</a>*) <b>parentContext</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-removeObjectWithName:">removeObjectWithName:&nbsp;</a></h3>
- (void) <b>removeObjectWithName:</b> (NSString*)objName;<br />
<p>
Remove object named <var>objName</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-setCreatesUnknownObjects:">setCreatesUnknownObjects:&nbsp;</a></h3>
- (void) <b>setCreatesUnknownObjects:</b> (BOOL)flag;<br />
<p>
</p>
<p>
Enable or disable creation of unknown objects.
Normally you get <code>nil</code> if you request
for non-existant object. If <var>flag</var> is
<code>YES</code> then by requesting non-existant
object, name for that object is created and it is
set no STNil.
</p>
<p>
</p>
<p>
Note: This method will be probably removed (moved
to Smalltalk language bundle).
</p>
<p>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-setFullScriptingEnabled:">setFullScriptingEnabled:&nbsp;</a></h3>
- (void) <b>setFullScriptingEnabled:</b> (BOOL)flag;<br />
<p>
Full scripting <br /> Enable or disable full
scripting. When full scripting is enabled, you
may send any message to any object.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-setObject:forName:">setObject:&nbsp;forName:&nbsp;</a></h3>
- (void) <b>setObject:</b> (id)anObject<b> forName:</b> (NSString*)objName;<br />
<p>
Register object <var>anObject</var> with name
<var>objName</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STContext-setParentContext:">setParentContext:&nbsp;</a></h3>
- (void) <b>setParentContext:</b> (<a rel="gsdoc" href="#class$STContext">STContext</a>*)context;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<a name="_STContext_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STContext Class</h2>
<h3><a name="ivariable$STContext*createsUnknownObjects">createsUnknownObjects</a></h3>
@protected BOOL <b>createsUnknownObjects</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STContext*fullScripting">fullScripting</a></h3>
@protected BOOL <b>fullScripting</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STContext*objectDictionary">objectDictionary</a></h3>
@protected NSMutableDictionary* <b>objectDictionary</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STContext*parentContext">parentContext</a></h3>
@protected STContext* <b>parentContext</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -0,0 +1,131 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STConversation" up="StepTalk">
<head>
<title>STConversation class documentation</title>
<author name="Stefan Urbanek">
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STConversation class
</heading>
<class name="STConversation" super="NSObject">
<declared>StepTalk/STConversation.h</declared>
<conform>STConversation</conform>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="STContext*" name="context" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="STEngine*" name="engine" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="languageName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="id" name="returnValue" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="STContext*">
<sel>context</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initWithContext:</sel>
<arg type="STContext*">aContext</arg>
<sel>language:</sel>
<arg type="NSString*">aLanguage</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSString*">
<sel>language</sel>
<desc>
Return name of the language used in the receiver
conversation
</desc>
</method>
<method type="id">
<sel>runScriptFromString:</sel>
<arg type="NSString*">aString</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setLanguage:</sel>
<arg type="NSString*">newLanguage</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</class>
</chapter>
<chapter>
<heading>
Software documentation for the STConversation protocol
</heading>
<protocol name="STConversation">
<declared>StepTalk/STConversation.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<method type="void">
<sel>interpretScript:</sel>
<arg type="bycopy NSString*">aString</arg>
<desc>
Interpret given string as a script in the
receiver environment.
</desc>
</method>
<method type="bycopy NSArray*">
<sel>knownLanguages</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSString*">
<sel>language</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>result</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="bycopy id">
<sel>resultByCopy</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setLanguage:</sel>
<arg type="NSString*">newLanguage</arg>
<desc>
Set language for the receiver.
</desc>
</method>
</protocol>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,221 @@
<html>
<head>
<title>STConversation class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STConversation">STConversation class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
<hr width="50%" align="left" />
<h3>Contents -</h3>
<ol>
<li>
<a href="#001000000000">Software documentation for the STConversation class</a>
</li>
<li>
<a href="#002000000000">Software documentation for the STConversation protocol</a>
</li>
</ol>
<hr width="50%" align="left" />
</div>
<h1><a name="001000000000">
Software documentation for the STConversation class
</a></h1>
<h2><a name="class$STConversation">STConversation</a> : NSObject</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STConversation.h</dd>
</dl>
</blockquote>
<blockquote>
<dl>
<dt><b>Conforms to:</b></dt>
<dd><a rel="gsdoc" href="#protocol$(STConversation)">STConversation</a></dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STConversation_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-context">-context</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-initWithContext:language:">-initWithContext:language:</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-language">-language</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-runScriptFromString:">-runScriptFromString:</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-setLanguage:">-setLanguage:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STConversation-context">context&nbsp;</a></h3>
- (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*) <b>context</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STConversation-initWithContext:language:">initWithContext:&nbsp;language:&nbsp;</a></h3>
- (id) <b>initWithContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)aContext<b> language:</b> (NSString*)aLanguage;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STConversation-language">language&nbsp;</a></h3>
- (NSString*) <b>language</b>;<br />
<p>
Return name of the language used in the receiver
conversation
</p>
<hr width="25%" align="left" />
<h3><a name="method$STConversation-runScriptFromString:">runScriptFromString:&nbsp;</a></h3>
- (id) <b>runScriptFromString:</b> (NSString*)aString;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STConversation-setLanguage:">setLanguage:&nbsp;</a></h3>
- (void) <b>setLanguage:</b> (NSString*)newLanguage;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<a name="_STConversation_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STConversation Class</h2>
<h3><a name="ivariable$STConversation*context">context</a></h3>
@protected STContext* <b>context</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STConversation*engine">engine</a></h3>
@protected STEngine* <b>engine</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STConversation*languageName">languageName</a></h3>
@protected NSString* <b>languageName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STConversation*returnValue">returnValue</a></h3>
@protected id <b>returnValue</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="002000000000">
Software documentation for the STConversation protocol
</a></h1>
<h2><a name="protocol$(STConversation)">STConversation</a></h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STConversation.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-interpretScript:">-interpretScript:</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-knownLanguages">-knownLanguages</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-language">-language</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-result">-result</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-resultByCopy">-resultByCopy</a></li>
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-setLanguage:">-setLanguage:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$(STConversation)-interpretScript:">interpretScript:&nbsp;</a></h3>
- (void) <b>interpretScript:</b> (bycopy NSString*)aString;<br />
<p>
Interpret given string as a script in the
receiver environment.
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STConversation)-knownLanguages">knownLanguages&nbsp;</a></h3>
- (bycopy NSArray*) <b>knownLanguages</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STConversation)-language">language&nbsp;</a></h3>
- (NSString*) <b>language</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STConversation)-result">result&nbsp;</a></h3>
- (id) <b>result</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STConversation)-resultByCopy">resultByCopy&nbsp;</a></h3>
- (bycopy id) <b>resultByCopy</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STConversation)-setLanguage:">setLanguage:&nbsp;</a></h3>
- (void) <b>setLanguage:</b> (NSString*)newLanguage;<br />
<p>
Set language for the receiver.
</p>
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STEngine" up="StepTalk">
<head>
<title>STEngine class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
@ -23,31 +20,12 @@
to intepret scripts.
</desc>
<method type="STEngine*" factory="yes">
<sel>engineForFileType:</sel>
<arg type="NSString*">fileType</arg>
<desc>
Return a scripting engine for the language used in
files of type <var>fileType</var>
</desc>
</method>
<method type="STEngine*" factory="yes">
<sel>engineForLanguageWithName:</sel>
<sel>engineForLanguage:</sel>
<arg type="NSString*">name</arg>
<desc>
Instance creation <br /> Return a scripting engine
for language with specified <var>name</var>.
</desc>
</method>
<method type="id" override="subclass">
<sel>executeCode:</sel>
<arg type="NSString*">code</arg>
<sel>inEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<desc>
Execude source <var>code</var> <var>code</var> in
an environment <var>env</var>. This is the method, that
has to be implemented by those who are writing a
language engine.
for language with specified <var>name</var>. The engine
is get from default language manager.
</desc>
</method>
<method type="id">
@ -57,34 +35,35 @@
<arg type="id">anObject</arg>
<sel>withArguments:</sel>
<arg type="NSArray*">args</arg>
<sel>inEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<sel>inContext:</sel>
<arg type="STContext*">env</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id" override="subclass">
<sel>interpretScript:</sel>
<arg type="NSString*">script</arg>
<sel>inContext:</sel>
<arg type="STContext*">context</arg>
<desc>
Interpret source code <var>code</var> in a
<var>context</var> <var>context</var>. This is the
method, that has to be implemented by those who are
writing a language engine.
</desc>
</method>
<method type="STMethod*">
<sel>methodFromSource:</sel>
<arg type="NSString*">sourceString</arg>
<sel>forReceiver:</sel>
<arg type="id">receiver</arg>
<sel>inEnvironment:</sel>
<arg type="STEnvironment*">env</arg>
<sel>inContext:</sel>
<arg type="STContext*">env</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setValue:</sel>
<arg type="id">anObject</arg>
<sel>forOption:</sel>
<arg type="NSString*">anOption</arg>
<desc>
Set engine specific option. Refer to particuliar
language engine documentation for more
information.
</desc>
</method>
<method type="BOOL">
<sel>understandsCode:</sel>
<arg type="NSString*">code</arg>
@ -92,13 +71,6 @@
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>valueForOption:</sel>
<arg type="NSString*">anOption</arg>
<desc>
Returs a value for engine specific option
</desc>
</method>
</class>
</chapter>
</body>

View file

@ -4,12 +4,13 @@
<title>STEngine class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STEngine">STEngine class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -36,94 +37,61 @@
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForFileType:">+engineForFileType:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForLanguageWithName:">+engineForLanguageWithName:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-defaultEnvironment">-defaultEnvironment</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeCode:">-executeCode:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeCode:inEnvironment:">-executeCode:inEnvironment:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeMethod:forReceiver:withArguments:inEnvironment:">-executeMethod:forReceiver:withArguments:inEnvironment:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeMethod:forScriptObject:">-executeMethod:forScriptObject:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-methodFromSource:forReceiver:inEnvironment:">-methodFromSource:forReceiver:inEnvironment:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-methodFromSource:forScriptObject:">-methodFromSource:forScriptObject:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-setDefaultEnvironment:">-setDefaultEnvironment:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-setValue:forOption:">-setValue:forOption:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForLanguage:">+engineForLanguage:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeMethod:forReceiver:withArguments:inContext:">-executeMethod:forReceiver:withArguments:inContext:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-interpretScript:inContext:">-interpretScript:inContext:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-methodFromSource:forReceiver:inContext:">-methodFromSource:forReceiver:inContext:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-understandsCode:">-understandsCode:</a></li>
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-valueForOption:">-valueForOption:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STEngine+engineForFileType:">engineForFileType:</a></h3>
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForFileType:</b> (NSString*)fileType;<br />
<p>
Return a scripting engine for the language used in
files of type <var>fileType</var>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine+engineForLanguageWithName:">engineForLanguageWithName:</a></h3>
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForLanguageWithName:</b> (NSString*)name;<br />
<h3><a name="method$STEngine+engineForLanguage:">engineForLanguage:&nbsp;</a></h3>
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForLanguage:</b> (NSString*)name;<br />
<p>
Instance creation <br /> Return a scripting engine
for language with specified <var>name</var>.
for language with specified <var>name</var>. The engine
is get from default language manager.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-executeCode:inEnvironment:">executeCode:inEnvironment:</a></h3>
- (id) <b>executeCode:</b> (NSString*)code<b> inEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<h3><a name="method$STEngine-executeMethod:forReceiver:withArguments:inContext:">executeMethod:&nbsp;forReceiver:&nbsp;withArguments:&nbsp;inContext:&nbsp;</a></h3>
- (id) <b>executeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod<b> forReceiver:</b> (id)anObject<b> withArguments:</b> (NSArray*)args<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)env;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-interpretScript:inContext:">interpretScript:&nbsp;inContext:&nbsp;</a></h3>
- (id) <b>interpretScript:</b> (NSString*)script<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)context;<br />
Subclasses <strong>should</strong> override this method.<br />
<p>
Execude source <var>code</var> <var>code</var> in
an environment <var>env</var>. This is the method, that
has to be implemented by those who are writing a
language engine.
Interpret source code <var>code</var> in a
<var>context</var> <var>context</var>. This is the
method, that has to be implemented by those who are
writing a language engine.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-executeMethod:forReceiver:withArguments:inEnvironment:">executeMethod:forReceiver:withArguments:inEnvironment:</a></h3>
- (id) <b>executeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod<b> forReceiver:</b> (id)anObject<b> withArguments:</b> (NSArray*)args<b> inEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<h3><a name="method$STEngine-methodFromSource:forReceiver:inContext:">methodFromSource:&nbsp;forReceiver:&nbsp;inContext:&nbsp;</a></h3>
- (STMethod*) <b>methodFromSource:</b> (NSString*)sourceString<b> forReceiver:</b> (id)receiver<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)env;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-methodFromSource:forReceiver:inEnvironment:">methodFromSource:forReceiver:inEnvironment:</a></h3>
- (<a rel="gsdoc" href="STMethod.html#class$STMethod">STMethod</a>*) <b>methodFromSource:</b> (NSString*)sourceString<b> forReceiver:</b> (id)receiver<b> inEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-setValue:forOption:">setValue:forOption:</a></h3>
- (void) <b>setValue:</b> (id)anObject<b> forOption:</b> (NSString*)anOption;<br />
<p>
Set engine specific option. Refer to particuliar
language engine documentation for more
information.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-understandsCode:">understandsCode:</a></h3>
<h3><a name="method$STEngine-understandsCode:">understandsCode:&nbsp;</a></h3>
- (BOOL) <b>understandsCode:</b> (NSString*)code;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEngine-valueForOption:">valueForOption:</a></h3>
- (id) <b>valueForOption:</b> (NSString*)anOption;<br />
<p>
Returs a value for engine specific option
</p>
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STEnvironment" up="StepTalk">
<head>
<title>STEnvironment class reference</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
@ -16,11 +13,36 @@
<heading>
Software documentation for the STEnvironment class
</heading>
<class name="STEnvironment" super="NSObject">
<class name="STEnvironment" super="STContext">
<declared>StepTalk/STEnvironment.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSMutableDictionary*" name="classes" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="STEnvironmentDescription*" name="description" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="infoCache" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="loadedBundles" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="objectFinders" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="STEnvironment*" factory="yes">
<sel>environmentWithDefaultDescription</sel>
<desc>
@ -53,27 +75,6 @@
internally to add classes provided by modules.
</desc>
</method>
<method type="void">
<sel>addNamedObjectsFromDictionary:</sel>
<arg type="NSDictionary*">dict</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="BOOL">
<sel>createsUnknownObjects</sel>
<desc>
Returns <code>YES</code> if unknown objects are
being created.
</desc>
</method>
<method type="BOOL">
<sel>fullScriptingEnabled</sel>
<desc>
Returns <code>YES</code> if full scripting is
enabled.
</desc>
</method>
<method type="BOOL">
<sel>includeBundle:</sel>
<arg type="NSBundle*">aBundle</arg>
@ -102,18 +103,12 @@
</method>
<method type="id">
<sel>initWithDescription:</sel>
<arg type="STEnvironmentDescription*">aDescription</arg>
<arg type="bycopy STEnvironmentDescription*">aDescription</arg>
<desc>
Initialises scripting environment using
scripting description <var>aDescription</var>.
</desc>
</method>
<method type="NSArray*">
<sel>knownObjectNames</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>loadModule:</sel>
<arg type="NSString*">moduleName</arg>
@ -124,33 +119,6 @@
directory.
</desc>
</method>
<method type="NSMutableDictionary*">
<sel>objectDictionary</sel>
<desc>
Named objects and object references <br /> Returns a
dictionary of all named objects in the
environment.
</desc>
</method>
<method type="STObjectReference*">
<sel>objectReferenceForObjectWithName:</sel>
<arg type="NSString*">name</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>objectWithName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Return object with name <var>objName</var>. 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, <var><code>nil</code></var> is returned.
</desc>
</method>
<method type="void">
<sel>registerObjectFinder:</sel>
<arg type="id">finder</arg>
@ -180,50 +148,6 @@
<var>name</var>
</desc>
</method>
<method type="void">
<sel>removeObjectWithName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Remove object named <var>objName</var>.
</desc>
</method>
<method type="void">
<sel>setCreatesUnknownObjects:</sel>
<arg type="BOOL">flag</arg>
<desc>
<p>
Enable or disable creation of unknown objects.
Normally you get <code>nil</code> if you request
for non-existant object. If <var>flag</var> is
<code>YES</code> then by requesting non-existant
object, name for that object is created and it is
set no STNil.
</p>
<p>
Note: This method will be probably removed (moved
to Smalltalk language bundle).
</p>
</desc>
</method>
<method type="void">
<sel>setFullScriptingEnabled:</sel>
<arg type="BOOL">flag</arg>
<desc>
Full scripting <br /> Enable or disable full
scripting. When full scripting is enabled, you
may send any message to any object.
</desc>
</method>
<method type="void">
<sel>setObject:</sel>
<arg type="id">anObject</arg>
<sel>forName:</sel>
<arg type="NSString*">objName</arg>
<desc>
Register object <var>anObject</var> with name
<var>objName</var>.
</desc>
</method>
<method type="NSString*">
<sel>translateSelector:</sel>
<arg type="NSString*">aString</arg>

View file

@ -4,12 +4,13 @@
<title>STEnvironment class reference</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STEnvironment">STEnvironment class reference</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -21,7 +22,7 @@
<h1><a name="001000000000">
Software documentation for the STEnvironment class
</a></h1>
<h2><a name="class$STEnvironment">STEnvironment</a> : NSObject</h2>
<h2><a name="class$STEnvironment">STEnvironment</a> : <a rel="gsdoc" href="STContext.html#class$STContext">STContext</a></h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
@ -33,39 +34,27 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STEnvironment_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+defaultScriptingEnvironment">+defaultScriptingEnvironment</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDefaultDescription">+environmentWithDefaultDescription</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDescription:">+environmentWithDescription:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDescriptionName:">+environmentWithDescriptionName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+sharedEnvironment">+sharedEnvironment</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-addClassesWithNames:">-addClassesWithNames:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-addNamedObjectsFromDictionary:">-addNamedObjectsFromDictionary:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-createsUnknownObjects">-createsUnknownObjects</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-fullScriptingEnabled">-fullScriptingEnabled</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-includeBundle:">-includeBundle:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-includeFramework:">-includeFramework:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initDefault">-initDefault</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDefaultDescription">-initWithDefaultDescription</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDescription:">-initWithDescription:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDescriptionName:">-initWithDescriptionName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-knownObjectNames">-knownObjectNames</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-loadModule:">-loadModule:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectDictionary">-objectDictionary</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectReferenceForObjectWithName:">-objectReferenceForObjectWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectWithName:">-objectWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-registerObjectFinder:name:">-registerObjectFinder:name:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-registerObjectFinderNamed:">-registerObjectFinderNamed:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-removeObjectFinderWithName:">-removeObjectFinderWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-removeObjectWithName:">-removeObjectWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setCreatesUnknownObjects:">-setCreatesUnknownObjects:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setFullScriptingEnabled:">-setFullScriptingEnabled:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setObject:forName:">-setObject:forName:</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-translateSelector:forReceiver:">-translateSelector:forReceiver:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STEnvironment+environmentWithDefaultDescription">environmentWithDefaultDescription</a></h3>
<h3><a name="method$STEnvironment+environmentWithDefaultDescription">environmentWithDefaultDescription&nbsp;</a></h3>
+ (<a rel="gsdoc" href="#class$STEnvironment">STEnvironment</a>*) <b>environmentWithDefaultDescription</b>;<br />
<p>
@ -74,8 +63,8 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment+environmentWithDescription:">environmentWithDescription:</a></h3>
+ (id) <b>environmentWithDescription:</b> (STEnvironmentDescription*)aDescription;<br />
<h3><a name="method$STEnvironment+environmentWithDescription:">environmentWithDescription:&nbsp;</a></h3>
+ (id) <b>environmentWithDescription:</b> (<a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a>*)aDescription;<br />
<p>
Creates and initialises scripting environment using
@ -83,7 +72,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment+sharedEnvironment">sharedEnvironment</a></h3>
<h3><a name="method$STEnvironment+sharedEnvironment">sharedEnvironment&nbsp;</a></h3>
+ (id) <b>sharedEnvironment</b>;<br />
<p>
@ -93,7 +82,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-addClassesWithNames:">addClassesWithNames:</a></h3>
<h3><a name="method$STEnvironment-addClassesWithNames:">addClassesWithNames:&nbsp;</a></h3>
- (void) <b>addClassesWithNames:</b> (NSArray*)names;<br />
<p>
@ -103,33 +92,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-addNamedObjectsFromDictionary:">addNamedObjectsFromDictionary:</a></h3>
- (void) <b>addNamedObjectsFromDictionary:</b> (NSDictionary*)dict;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-createsUnknownObjects">createsUnknownObjects</a></h3>
- (BOOL) <b>createsUnknownObjects</b>;<br />
<p>
Returns <code>YES</code> if unknown objects are
being created.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-fullScriptingEnabled">fullScriptingEnabled</a></h3>
- (BOOL) <b>fullScriptingEnabled</b>;<br />
<p>
Returns <code>YES</code> if full scripting is
enabled.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-includeBundle:">includeBundle:</a></h3>
<h3><a name="method$STEnvironment-includeBundle:">includeBundle:&nbsp;</a></h3>
- (BOOL) <b>includeBundle:</b> (NSBundle*)aBundle;<br />
<p>
@ -137,7 +100,7 @@
bundle
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-includeFramework:">includeFramework:</a></h3>
<h3><a name="method$STEnvironment-includeFramework:">includeFramework:&nbsp;</a></h3>
- (BOOL) <b>includeFramework:</b> (NSString*)frameworkName;<br />
<p>
@ -146,7 +109,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-initWithDefaultDescription">initWithDefaultDescription</a></h3>
<h3><a name="method$STEnvironment-initWithDefaultDescription">initWithDefaultDescription&nbsp;</a></h3>
- (id) <b>initWithDefaultDescription</b>;<br />
This is a designated initialiser for the class.<br />
<p>
@ -156,8 +119,8 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-initWithDescription:">initWithDescription:</a></h3>
- (id) <b>initWithDescription:</b> (STEnvironmentDescription*)aDescription;<br />
<h3><a name="method$STEnvironment-initWithDescription:">initWithDescription:&nbsp;</a></h3>
- (id) <b>initWithDescription:</b> (bycopy <a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a>*)aDescription;<br />
<p>
Initialises scripting environment using
@ -165,15 +128,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-knownObjectNames">knownObjectNames</a></h3>
- (NSArray*) <b>knownObjectNames</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-loadModule:">loadModule:</a></h3>
<h3><a name="method$STEnvironment-loadModule:">loadModule:&nbsp;</a></h3>
- (void) <b>loadModule:</b> (NSString*)moduleName;<br />
<p>
@ -184,38 +139,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-objectDictionary">objectDictionary</a></h3>
- (NSMutableDictionary*) <b>objectDictionary</b>;<br />
<p>
Named objects and object references <br /> Returns a
dictionary of all named objects in the
environment.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-objectReferenceForObjectWithName:">objectReferenceForObjectWithName:</a></h3>
- (<a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a>*) <b>objectReferenceForObjectWithName:</b> (NSString*)name;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-objectWithName:">objectWithName:</a></h3>
- (id) <b>objectWithName:</b> (NSString*)objName;<br />
<p>
Return object with name <var>objName</var>. 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, <var><code>nil</code></var> is returned.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-registerObjectFinder:name:">registerObjectFinder:name:</a></h3>
<h3><a name="method$STEnvironment-registerObjectFinder:name:">registerObjectFinder:&nbsp;name:&nbsp;</a></h3>
- (void) <b>registerObjectFinder:</b> (id)finder<b> name:</b> (NSString*)name;<br />
<p>
@ -225,7 +149,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-registerObjectFinderNamed:">registerObjectFinderNamed:</a></h3>
<h3><a name="method$STEnvironment-registerObjectFinderNamed:">registerObjectFinderNamed:&nbsp;</a></h3>
- (void) <b>registerObjectFinderNamed:</b> (NSString*)name;<br />
<p>
@ -236,7 +160,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-removeObjectFinderWithName:">removeObjectFinderWithName:</a></h3>
<h3><a name="method$STEnvironment-removeObjectFinderWithName:">removeObjectFinderWithName:&nbsp;</a></h3>
- (void) <b>removeObjectFinderWithName:</b> (NSString*)name;<br />
<p>
@ -245,63 +169,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-removeObjectWithName:">removeObjectWithName:</a></h3>
- (void) <b>removeObjectWithName:</b> (NSString*)objName;<br />
<p>
Remove object named <var>objName</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-setCreatesUnknownObjects:">setCreatesUnknownObjects:</a></h3>
- (void) <b>setCreatesUnknownObjects:</b> (BOOL)flag;<br />
<p>
</p>
<p>
Enable or disable creation of unknown objects.
Normally you get <code>nil</code> if you request
for non-existant object. If <var>flag</var> is
<code>YES</code> then by requesting non-existant
object, name for that object is created and it is
set no STNil.
</p>
<p>
</p>
<p>
Note: This method will be probably removed (moved
to Smalltalk language bundle).
</p>
<p>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-setFullScriptingEnabled:">setFullScriptingEnabled:</a></h3>
- (void) <b>setFullScriptingEnabled:</b> (BOOL)flag;<br />
<p>
Full scripting <br /> Enable or disable full
scripting. When full scripting is enabled, you
may send any message to any object.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-setObject:forName:">setObject:forName:</a></h3>
- (void) <b>setObject:</b> (id)anObject<b> forName:</b> (NSString*)objName;<br />
<p>
Register object <var>anObject</var> with name
<var>objName</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironment-translateSelector:forReceiver:">translateSelector:forReceiver:</a></h3>
<h3><a name="method$STEnvironment-translateSelector:forReceiver:">translateSelector:&nbsp;forReceiver:&nbsp;</a></h3>
- (NSString*) <b>translateSelector:</b> (NSString*)aString<b> forReceiver:</b> (id)anObject;<br />
<p>
@ -309,7 +177,51 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<a name="_STEnvironment_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STEnvironment Class</h2>
<h3><a name="ivariable$STEnvironment*classes">classes</a></h3>
@protected NSMutableDictionary* <b>classes</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironment*description">description</a></h3>
@protected STEnvironmentDescription* <b>description</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironment*infoCache">infoCache</a></h3>
@protected NSMutableDictionary* <b>infoCache</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironment*loadedBundles">loadedBundles</a></h3>
@protected NSMutableArray* <b>loadedBundles</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironment*objectFinders">objectFinders</a></h3>
@protected NSMutableDictionary* <b>objectFinders</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -0,0 +1,139 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STEnvironmentDescription" up="StepTalk">
<head>
<title>STEnvironmentDescription class documentation</title>
<author name="Stefan Urbanek">
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the
STEnvironmentDescription class
</heading>
<class name="STEnvironmentDescription" super="NSObject">
<declared>StepTalk/STEnvironmentDescription.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSMutableDictionary*" name="aliases" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="behaviours" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="classes" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="finders" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="frameworks" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="modules" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="int" name="restriction" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="usedDefs" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="NSString*" factory="yes">
<sel>defaultDescriptionName</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id" factory="yes">
<sel>descriptionFromDictionary:</sel>
<arg type="NSDictionary*">dictionary</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id" factory="yes">
<sel>descriptionWithName:</sel>
<arg type="NSString*">descriptionName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSMutableDictionary*">
<sel>classes</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>frameworks</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initFromDictionary:</sel>
<arg type="NSDictionary*">def</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initWithName:</sel>
<arg type="NSString*">defName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>modules</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>objectFinders</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>updateClassWithName:</sel>
<arg type="NSString*">className</arg>
<sel>description:</sel>
<arg type="NSDictionary*">def</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>updateFromDictionary:</sel>
<arg type="NSDictionary*">def</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,215 @@
<html>
<head>
<title>STEnvironmentDescription class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STEnvironmentDescription">STEnvironmentDescription class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the
STEnvironmentDescription class
</a></h1>
<h2><a name="class$STEnvironmentDescription">STEnvironmentDescription</a> : NSObject</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STEnvironmentDescription.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STEnvironmentDescription_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+defaultDescriptionName">+defaultDescriptionName</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+descriptionFromDictionary:">+descriptionFromDictionary:</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+descriptionWithName:">+descriptionWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-classes">-classes</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-frameworks">-frameworks</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-initFromDictionary:">-initFromDictionary:</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-initWithName:">-initWithName:</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-modules">-modules</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-objectFinders">-objectFinders</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-updateClassWithName:description:">-updateClassWithName:description:</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-updateFromDictionary:">-updateFromDictionary:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STEnvironmentDescription+defaultDescriptionName">defaultDescriptionName&nbsp;</a></h3>
+ (NSString*) <b>defaultDescriptionName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription+descriptionFromDictionary:">descriptionFromDictionary:&nbsp;</a></h3>
+ (id) <b>descriptionFromDictionary:</b> (NSDictionary*)dictionary;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription+descriptionWithName:">descriptionWithName:&nbsp;</a></h3>
+ (id) <b>descriptionWithName:</b> (NSString*)descriptionName;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-classes">classes&nbsp;</a></h3>
- (NSMutableDictionary*) <b>classes</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-frameworks">frameworks&nbsp;</a></h3>
- (NSArray*) <b>frameworks</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-initFromDictionary:">initFromDictionary:&nbsp;</a></h3>
- (id) <b>initFromDictionary:</b> (NSDictionary*)def;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-initWithName:">initWithName:&nbsp;</a></h3>
- (id) <b>initWithName:</b> (NSString*)defName;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-modules">modules&nbsp;</a></h3>
- (NSArray*) <b>modules</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-objectFinders">objectFinders&nbsp;</a></h3>
- (NSArray*) <b>objectFinders</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-updateClassWithName:description:">updateClassWithName:&nbsp;description:&nbsp;</a></h3>
- (void) <b>updateClassWithName:</b> (NSString*)className<b> description:</b> (NSDictionary*)def;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STEnvironmentDescription-updateFromDictionary:">updateFromDictionary:&nbsp;</a></h3>
- (void) <b>updateFromDictionary:</b> (NSDictionary*)def;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<a name="_STEnvironmentDescription_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STEnvironmentDescription Class</h2>
<h3><a name="ivariable$STEnvironmentDescription*aliases">aliases</a></h3>
@protected NSMutableDictionary* <b>aliases</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*behaviours">behaviours</a></h3>
@protected NSMutableDictionary* <b>behaviours</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*classes">classes</a></h3>
@protected NSMutableDictionary* <b>classes</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*finders">finders</a></h3>
@protected NSMutableArray* <b>finders</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*frameworks">frameworks</a></h3>
@protected NSMutableArray* <b>frameworks</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*modules">modules</a></h3>
@protected NSMutableArray* <b>modules</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*restriction">restriction</a></h3>
@protected int <b>restriction</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STEnvironmentDescription*usedDefs">usedDefs</a></h3>
@protected NSMutableArray* <b>usedDefs</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STExterns" up="StepTalk">
<head>
<title>STExterns autogsdoc generated documentation</title>
<title>STExterns documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>

View file

@ -1,15 +1,16 @@
<html>
<head>
<title>STExterns autogsdoc generated documentation</title>
<title>STExterns documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STExterns">STExterns autogsdoc generated documentation</a></h1>
<h1><a name="title$STExterns">STExterns documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -151,5 +152,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -0,0 +1,95 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STFileScript" up="StepTalk">
<head>
<title>STFileScript class documentation</title>
<author name="Stefan Urbanek">
<email address="stefanurbanek@yahoo.fr">
stefanurbanek@yahoo.fr
</email>
</author>
<copy>2002 Stefan Urbanek</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STFileScript class
</heading>
<class name="STFileScript" super="STScript">
<declared>StepTalk/STFileScript.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSString*" name="description" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="fileName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="localizedName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="menuKey" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>scriptWithFile:</sel>
<arg type="NSString*">file</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSComparisonResult">
<sel>compareByLocalizedName:</sel>
<arg type="STFileScript*">aScript</arg>
<desc>
Compare scripts by localized name.
</desc>
</method>
<method type="NSString*">
<sel>fileName</sel>
<desc>
Return file name of the receiver.
</desc>
</method>
<method type="id">
<sel>initWithFile:</sel>
<arg type="NSString*">aFile</arg>
<desc>
Create a new script from file <var>aFile></var>.
Script information will be read from 'aFile.stinfo'
file containing a dictionary property list.
</desc>
</method>
<method type="NSString*">
<sel>localizedName</sel>
<desc>
Returns localized name of the receiver script.
</desc>
</method>
<method type="NSString*">
<sel>scriptDescription</sel>
<desc>
Returns localized description of the script.
</desc>
</method>
<method type="NSString*">
<sel>scriptName</sel>
<desc>
Returns a script name by which the script is
identified
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,149 @@
<html>
<head>
<title>STFileScript class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STFileScript">STFileScript class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:stefanurbanek@yahoo.fr"><code>stefanurbanek@yahoo.fr</code></a>)</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Stefan Urbanek</p>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the STFileScript class
</a></h1>
<h2><a name="class$STFileScript">STFileScript</a> : <a rel="gsdoc" href="STScript.html#class$STScript">STScript</a></h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STFileScript.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STFileScript_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript+scriptWithFile:">+scriptWithFile:</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-compareByLocalizedName:">-compareByLocalizedName:</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-fileName">-fileName</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-initWithFile:">-initWithFile:</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-localizedName">-localizedName</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-scriptDescription">-scriptDescription</a></li>
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-scriptName">-scriptName</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STFileScript+scriptWithFile:">scriptWithFile:&nbsp;</a></h3>
+ (id) <b>scriptWithFile:</b> (NSString*)file;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-compareByLocalizedName:">compareByLocalizedName:&nbsp;</a></h3>
- (NSComparisonResult) <b>compareByLocalizedName:</b> (<a rel="gsdoc" href="#class$STFileScript">STFileScript</a>*)aScript;<br />
<p>
Compare scripts by localized name.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-fileName">fileName&nbsp;</a></h3>
- (NSString*) <b>fileName</b>;<br />
<p>
Return file name of the receiver.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-initWithFile:">initWithFile:&nbsp;</a></h3>
- (id) <b>initWithFile:</b> (NSString*)aFile;<br />
<p>
Create a new script from file <var>aFile&gt;</var>.
Script information will be read from &apos;aFile.stinfo&apos;
file containing a dictionary property list.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-localizedName">localizedName&nbsp;</a></h3>
- (NSString*) <b>localizedName</b>;<br />
<p>
Returns localized name of the receiver script.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-scriptDescription">scriptDescription&nbsp;</a></h3>
- (NSString*) <b>scriptDescription</b>;<br />
<p>
Returns localized description of the script.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STFileScript-scriptName">scriptName&nbsp;</a></h3>
- (NSString*) <b>scriptName</b>;<br />
<p>
Returns a script name by which the script is
identified
</p>
<hr width="25%" align="left" />
<a name="_STFileScript_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STFileScript Class</h2>
<h3><a name="ivariable$STFileScript*description">description</a></h3>
@protected NSString* <b>description</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STFileScript*fileName">fileName</a></h3>
@protected NSString* <b>fileName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STFileScript*localizedName">localizedName</a></h3>
@protected NSString* <b>localizedName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STFileScript*menuKey">menuKey</a></h3>
@protected NSString* <b>menuKey</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STFunctions" up="StepTalk">
<head>
<title>STFunctions autogsdoc generated documentation</title>
<title>STFunctions documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>

View file

@ -1,15 +1,16 @@
<html>
<head>
<title>STFunctions autogsdoc generated documentation</title>
<title>STFunctions documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STFunctions">STFunctions autogsdoc generated documentation</a></h1>
<h1><a name="title$STFunctions">STFunctions documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -47,5 +48,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,95 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<gsdoc base="STLanguage" up="StepTalk">
<head>
<title>STLanguage class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STLanguage class
</heading>
<class name="STLanguage" super="NSBundle">
<declared>StepTalk/STLanguage.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<method type="NSArray*" factory="yes">
<sel>allKnownFileTypes</sel>
<desc>
Return all known types (extensions) of StepTalk
script files
</desc>
</method>
<method type="NSArray*" factory="yes">
<sel>allLanguageNames</sel>
<desc>
Returns an array containing the names of all
available languages
</desc>
</method>
<method type="NSString*" factory="yes">
<sel>defaultLanguageName</sel>
<desc>
Returns the name of default scripting language
specified by the STDefaultLanguageName default.
If there is no such default in user's defaults database,
then Smalltalk is used.
</desc>
</method>
<method type="STLanguage*" factory="yes">
<sel>languageForFileType:</sel>
<arg type="NSString*">fileType</arg>
<desc>
Returns the language bundle for a language used by
files of type <var>fileType</var>.
</desc>
</method>
<method type="NSString*" factory="yes">
<sel>languageNameForFileType:</sel>
<arg type="NSString*">fileType</arg>
<desc>
Returns name of a language used by files of type
<var>fileType</var>.
</desc>
</method>
<method type="id" factory="yes">
<sel>languageWithName:</sel>
<arg type="NSString*">languageName</arg>
<desc>
Returns language bundle for a language with name
<var>languageName</var>
</desc>
</method>
<method type="id" factory="yes">
<sel>languageWithPath:</sel>
<arg type="NSString*">path</arg>
<desc>
Returns language bundle for language with name
<var>languageName</var>.
</desc>
</method>
<method type="STEngine*">
<sel>engine</sel>
<desc>
Returns a scripting engine provided by the
language.
</desc>
</method>
<method type="NSString*">
<sel>languageName</sel>
<desc>
Returns the name of the language
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -1,134 +0,0 @@
<html>
<head>
<title>STLanguage class documentation</title>
</head>
<body>
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STLanguage">STLanguage class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the STLanguage class
</a></h1>
<h2><a name="class$STLanguage">STLanguage</a> : NSBundle</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STLanguage.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+allKnownFileTypes">+allKnownFileTypes</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+allLanguageNames">+allLanguageNames</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+defaultLanguageName">+defaultLanguageName</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageForFileType:">+languageForFileType:</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageNameForFileType:">+languageNameForFileType:</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageWithName:">+languageWithName:</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageWithPath:">+languageWithPath:</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage-engine">-engine</a></li>
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage-languageName">-languageName</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STLanguage+allKnownFileTypes">allKnownFileTypes</a></h3>
+ (NSArray*) <b>allKnownFileTypes</b>;<br />
<p>
Return all known types (extensions) of StepTalk
script files
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+allLanguageNames">allLanguageNames</a></h3>
+ (NSArray*) <b>allLanguageNames</b>;<br />
<p>
Returns an array containing the names of all
available languages
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+defaultLanguageName">defaultLanguageName</a></h3>
+ (NSString*) <b>defaultLanguageName</b>;<br />
<p>
Returns the name of default scripting language
specified by the STDefaultLanguageName default.
If there is no such default in user&apos;s defaults database,
then Smalltalk is used.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+languageForFileType:">languageForFileType:</a></h3>
+ (<a rel="gsdoc" href="#class$STLanguage">STLanguage</a>*) <b>languageForFileType:</b> (NSString*)fileType;<br />
<p>
Returns the language bundle for a language used by
files of type <var>fileType</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+languageNameForFileType:">languageNameForFileType:</a></h3>
+ (NSString*) <b>languageNameForFileType:</b> (NSString*)fileType;<br />
<p>
Returns name of a language used by files of type
<var>fileType</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+languageWithName:">languageWithName:</a></h3>
+ (id) <b>languageWithName:</b> (NSString*)languageName;<br />
<p>
Returns language bundle for a language with name
<var>languageName</var>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage+languageWithPath:">languageWithPath:</a></h3>
+ (id) <b>languageWithPath:</b> (NSString*)path;<br />
<p>
Returns language bundle for language with name
<var>languageName</var>.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage-engine">engine</a></h3>
- (<a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a>*) <b>engine</b>;<br />
<p>
Returns a scripting engine provided by the
language.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguage-languageName">languageName</a></h3>
- (NSString*) <b>languageName</b>;<br />
<p>
Returns the name of the language
</p>
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</html>

View file

@ -0,0 +1,148 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STLanguageManager" up="StepTalk">
<head>
<title>STLanguageManager class documentation</title>
<author name="Generated by stevko"></author>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STLanguageManager class
</heading>
<class name="STLanguageManager" super="NSObject">
<declared>StepTalk/STLanguageManager.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSMutableDictionary*" name="engineClasses" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="fileTypes" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="languageBundles" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="languageInfos" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableArray*" name="languages" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="STLanguageManager*" factory="yes">
<sel>defaultManager</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>availableLanguages</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSBundle*">
<sel>bundleForLanguage:</sel>
<arg type="NSString*">language</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="STEngine*">
<sel>createEngineForLanguage:</sel>
<arg type="NSString*">language</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSString*">
<sel>defaultLanguage</sel>
<desc>
Returns the name of default scripting language
specified by the STDefaultLanguage default. If
there is no such default in user's defaults database,
then Smalltalk is used.
</desc>
</method>
<method type="Class">
<sel>engineClassForLanguage:</sel>
<arg type="NSString*">language</arg>
<desc>
Return an engine class for specified
<var>language</var>. The class lookup is as follows:
<ul>
<li>
internal class dictionary by
<var>language</var> name
<li>
all loaded classes by class name in the
<var>language</var> info dictionary
<li>
in the <var>language</var> bundle
<li>
in the <var>language</var> bundle as
<i>language_nameEngine</i>
</ul>
</desc>
</method>
<method type="NSDictionary*">
<sel>infoForLanguage:</sel>
<arg type="NSString*">language</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSArray*">
<sel>knownFileTypes</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSString*">
<sel>languageForFileType:</sel>
<arg type="NSString*">type</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>registerLanguage:</sel>
<arg type="NSString*">language</arg>
<sel>engineClass:</sel>
<arg type="Class">class</arg>
<sel>info:</sel>
<arg type="NSDictionary*">info</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>registerLanguagesFromBundle:</sel>
<arg type="NSBundle*">bundle</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>removeLanguage:</sel>
<arg type="NSString*">language</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</class>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,148 @@
<html>
<head>
<title>STLanguageManager class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STLanguageManager">STLanguageManager class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Generated by stevko</dt>
<dd>
</dd>
</dl>
<div>
</div>
<h1><a name="001000000000">
Software documentation for the STLanguageManager class
</a></h1>
<h2><a name="class$STLanguageManager">STLanguageManager</a> : NSObject</h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STLanguageManager.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STLanguageManager_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager+defaultManager">+defaultManager</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-availableLanguages">-availableLanguages</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-bundleForLanguage:">-bundleForLanguage:</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-createEngineForLanguage:">-createEngineForLanguage:</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-defaultLanguage">-defaultLanguage</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-engineClassForLanguage:">-engineClassForLanguage:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STLanguageManager+defaultManager">defaultManager&nbsp;</a></h3>
+ (<a rel="gsdoc" href="#class$STLanguageManager">STLanguageManager</a>*) <b>defaultManager</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguageManager-availableLanguages">availableLanguages&nbsp;</a></h3>
- (NSArray*) <b>availableLanguages</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguageManager-bundleForLanguage:">bundleForLanguage:&nbsp;</a></h3>
- (NSBundle*) <b>bundleForLanguage:</b> (NSString*)language;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguageManager-createEngineForLanguage:">createEngineForLanguage:&nbsp;</a></h3>
- (<a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a>*) <b>createEngineForLanguage:</b> (NSString*)language;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguageManager-defaultLanguage">defaultLanguage&nbsp;</a></h3>
- (NSString*) <b>defaultLanguage</b>;<br />
<p>
Returns the name of default scripting language
specified by the STDefaultLanguage default. If
there is no such default in user&apos;s defaults database,
then Smalltalk is used.
</p>
<hr width="25%" align="left" />
<h3><a name="method$STLanguageManager-engineClassForLanguage:">engineClassForLanguage:&nbsp;</a></h3>
- (Class) <b>engineClassForLanguage:</b> (NSString*)language;<br />
<p>
Return an engine class for specified
<var>language</var>. The class lookup is as follows:
</p>
<hr width="25%" align="left" />
<a name="_STLanguageManager_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STLanguageManager Class</h2>
<h3><a name="ivariable$STLanguageManager*engineClasses">engineClasses</a></h3>
@protected NSMutableDictionary* <b>engineClasses</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STLanguageManager*fileTypes">fileTypes</a></h3>
@protected NSMutableDictionary* <b>fileTypes</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STLanguageManager*languageBundles">languageBundles</a></h3>
@protected NSMutableDictionary* <b>languageBundles</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STLanguageManager*languageInfos">languageInfos</a></h3>
@protected NSMutableDictionary* <b>languageInfos</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STLanguageManager*languages">languages</a></h3>
@protected NSMutableArray* <b>languages</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STMethod" up="StepTalk">
<head>
<title>STMethod autogsdoc generated documentation</title>
<title>STMethod documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2003 Free Software Foundation</copy>
</head>

View file

@ -1,15 +1,16 @@
<html>
<head>
<title>STMethod autogsdoc generated documentation</title>
<title>STMethod documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STMethod">STMethod autogsdoc generated documentation</a></h1>
<h1><a name="title$STMethod">STMethod documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -40,7 +41,7 @@
<li><a rel="gsdoc" href="STMethod.html#method$(STMethod)-source">-source</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$(STMethod)-languageName">languageName</a></h3>
<h3><a name="method$(STMethod)-languageName">languageName&nbsp;</a></h3>
- (NSString*) <b>languageName</b>;<br />
<p>
@ -48,7 +49,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STMethod)-methodName">methodName</a></h3>
<h3><a name="method$(STMethod)-methodName">methodName&nbsp;</a></h3>
- (NSString*) <b>methodName</b>;<br />
<p>
@ -56,7 +57,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STMethod)-source">source</a></h3>
<h3><a name="method$(STMethod)-source">source&nbsp;</a></h3>
- (NSString*) <b>source</b>;<br />
<p>
@ -66,5 +67,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STObjCRuntime" up="StepTalk">
<head>
<title>STObjCRuntime autogsdoc generated documentation</title>
<title>STObjCRuntime documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
@ -31,6 +28,12 @@
<em>Description forthcoming.</em>
</desc>
</function>
<function type="NSMethodSignature*" name="STConstructMethodSignatureForSelector">
<arg type="SEL">sel</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</function>
<function type="NSMutableDictionary*" name="STGetFoundationConstants">
<desc>
<em>Description forthcoming.</em>

View file

@ -1,15 +1,16 @@
<html>
<head>
<title>STObjCRuntime autogsdoc generated documentation</title>
<title>STObjCRuntime documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STObjCRuntime">STObjCRuntime autogsdoc generated documentation</a></h1>
<h1><a name="title$STObjCRuntime">STObjCRuntime documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -43,6 +44,14 @@
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="function$STConstructMethodSignatureForSelector">STConstructMethodSignatureForSelector</a></h3>
NSMethodSignature* STConstructMethodSignatureForSelector(SEL <b>sel</b>);<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="function$STGetFoundationConstants">STGetFoundationConstants</a></h3>
@ -87,5 +96,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STObjectReference" up="StepTalk">
<head>
<title>STObjectReference class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>
@ -21,11 +18,27 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSString*" name="identifier" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="id" name="target" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="NSString*">
<sel>identifier</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initWithObjectName:</sel>
<arg type="NSString*">name</arg>
<sel>pool:</sel>
<arg type="NSMutableDictionary*">aPool</arg>
<sel>initWithIdentifier:</sel>
<arg type="NSString*">ident</arg>
<sel>target:</sel>
<arg type="id">anObject</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
@ -36,18 +49,6 @@
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSString*">
<sel>objectName</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="NSMutableDictionary*">
<sel>pool</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setObject:</sel>
<arg type="id">anObject</arg>
@ -55,16 +56,8 @@
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setObjectName:</sel>
<arg type="NSString*">newName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>setPool:</sel>
<arg type="NSMutableDictionary*">aDict</arg>
<method type="id">
<sel>target</sel>
<desc>
<em>Description forthcoming.</em>
</desc>

View file

@ -4,12 +4,13 @@
<title>STObjectReference class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STObjectReference">STObjectReference class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -33,26 +34,35 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STObjectReference_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-initWithObjectName:pool:">-initWithObjectName:pool:</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-identifier">-identifier</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-initWithIdentifier:target:">-initWithIdentifier:target:</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-object">-object</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-objectName">-objectName</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-pool">-pool</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setObject:">-setObject:</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setObjectName:">-setObjectName:</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setPool:">-setPool:</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-target">-target</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STObjectReference-initWithObjectName:pool:">initWithObjectName:pool:</a></h3>
- (id) <b>initWithObjectName:</b> (NSString*)name<b> pool:</b> (NSMutableDictionary*)aPool;<br />
<h3><a name="method$STObjectReference-identifier">identifier&nbsp;</a></h3>
- (NSString*) <b>identifier</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-object">object</a></h3>
<h3><a name="method$STObjectReference-initWithIdentifier:target:">initWithIdentifier:&nbsp;target:&nbsp;</a></h3>
- (id) <b>initWithIdentifier:</b> (NSString*)ident<b> target:</b> (id)anObject;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-object">object&nbsp;</a></h3>
- (id) <b>object</b>;<br />
<p>
@ -60,23 +70,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-objectName">objectName</a></h3>
- (NSString*) <b>objectName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-pool">pool</a></h3>
- (NSMutableDictionary*) <b>pool</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-setObject:">setObject:</a></h3>
<h3><a name="method$STObjectReference-setObject:">setObject:&nbsp;</a></h3>
- (void) <b>setObject:</b> (id)anObject;<br />
<p>
@ -84,23 +78,35 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-setObjectName:">setObjectName:</a></h3>
- (void) <b>setObjectName:</b> (NSString*)newName;<br />
<h3><a name="method$STObjectReference-target">target&nbsp;</a></h3>
- (id) <b>target</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STObjectReference-setPool:">setPool:</a></h3>
- (void) <b>setPool:</b> (NSMutableDictionary*)aDict;<br />
<a name="_STObjectReference_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STObjectReference Class</h2>
<h3><a name="ivariable$STObjectReference*identifier">identifier</a></h3>
@protected NSString* <b>identifier</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STObjectReference*target">target</a></h3>
@protected id <b>target</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -0,0 +1,91 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STRemoteConversation" up="StepTalk">
<head>
<title>STRemoteConversation class documentation</title>
<author name="Stefan Urbanek">
</author>
<copy>2002 Free Software Foundation</copy>
</head>
<body>
<front><contents /></front>
<chapter>
<heading>
Software documentation for the STRemoteConversation
class
</heading>
<class name="STRemoteConversation" super="STConversation">
<declared>StepTalk/STRemoteConversation.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSConnection*" name="connection" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="environmentName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSDistantObject&lt;STEnvironmentProcess&gt;*" name="environmentProcess" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="hostName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSDistantObject&lt;STConversation&gt;*" name="proxy" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="void">
<sel>close</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="id">
<sel>initWithEnvironmentName:</sel>
<arg type="NSString*">envName</arg>
<sel>host:</sel>
<arg type="NSString*">host</arg>
<sel>language:</sel>
<arg type="NSString*">langName</arg>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
<method type="void">
<sel>open</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</class>
</chapter>
<chapter>
<heading>
Software documentation for the STEnvironmentProcess
protocol
</heading>
<protocol name="STEnvironmentProcess">
<declared>StepTalk/STRemoteConversation.h</declared>
<desc>
<em>Description forthcoming.</em>
</desc>
<method type="STConversation*">
<sel>createConversation</sel>
<desc>
<em>Description forthcoming.</em>
</desc>
</method>
</protocol>
</chapter>
</body>
</gsdoc>

View file

@ -0,0 +1,162 @@
<html>
<head>
<title>STRemoteConversation class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STRemoteConversation">STRemoteConversation class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
<div>
<hr width="50%" align="left" />
<h3>Contents -</h3>
<ol>
<li>
<a href="#001000000000">Software documentation for the STRemoteConversation
class</a>
</li>
<li>
<a href="#002000000000">Software documentation for the STEnvironmentProcess
protocol</a>
</li>
</ol>
<hr width="50%" align="left" />
</div>
<h1><a name="001000000000">
Software documentation for the STRemoteConversation
class
</a></h1>
<h2><a name="class$STRemoteConversation">STRemoteConversation</a> : <a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a></h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STRemoteConversation.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STRemoteConversation_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-close">-close</a></li>
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-initWithEnvironmentName:host:language:">-initWithEnvironmentName:host:language:</a></li>
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-open">-open</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STRemoteConversation-close">close&nbsp;</a></h3>
- (void) <b>close</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STRemoteConversation-initWithEnvironmentName:host:language:">initWithEnvironmentName:&nbsp;host:&nbsp;language:&nbsp;</a></h3>
- (id) <b>initWithEnvironmentName:</b> (NSString*)envName<b> host:</b> (NSString*)host<b> language:</b> (NSString*)langName;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="method$STRemoteConversation-open">open&nbsp;</a></h3>
- (void) <b>open</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<a name="_STRemoteConversation_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STRemoteConversation Class</h2>
<h3><a name="ivariable$STRemoteConversation*connection">connection</a></h3>
@protected NSConnection* <b>connection</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STRemoteConversation*environmentName">environmentName</a></h3>
@protected NSString* <b>environmentName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STRemoteConversation*environmentProcess">environmentProcess</a></h3>
@protected NSDistantObject<STEnvironmentProcess>* <b>environmentProcess</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STRemoteConversation*hostName">hostName</a></h3>
@protected NSString* <b>hostName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STRemoteConversation*proxy">proxy</a></h3>
@protected NSDistantObject<STConversation>* <b>proxy</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="002000000000">
Software documentation for the STEnvironmentProcess
protocol
</a></h1>
<h2><a name="protocol$(STEnvironmentProcess)">STEnvironmentProcess</a></h2>
<blockquote>
<dl>
<dt><b>Declared in:</b></dt>
<dd>StepTalk/STRemoteConversation.h</dd>
</dl>
</blockquote>
<p>
<em>Description forthcoming.</em>
</p>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STRemoteConversation.html#method$(STEnvironmentProcess)-createConversation">-createConversation</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$(STEnvironmentProcess)-createConversation">createConversation&nbsp;</a></h3>
- (<a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a>*) <b>createConversation</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</font>
</body>
</html>

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STScript" up="StepTalk">
<head>
<title>STScript class documentation</title>
@ -21,6 +21,16 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSString*" name="language" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="source" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>scriptWithSource:</sel>
<arg type="NSString*">aString</arg>

View file

@ -4,6 +4,7 @@
<title>STScript class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STScript">STScript class documentation</a></h1>
@ -33,24 +34,20 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STScript_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STScript.html#method$STScript+scriptWithFile:">+scriptWithFile:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript+scriptWithSource:language:">+scriptWithSource:language:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-compareByLocalizedName:">-compareByLocalizedName:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-fileName">-fileName</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-initWithFile:">-initWithFile:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-initWithSource:language:">-initWithSource:language:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-language">-language</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-localizedName">-localizedName</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-scriptDescription">-scriptDescription</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-scriptName">-scriptName</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-setLanguage:">-setLanguage:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-setSource:">-setSource:</a></li>
<li><a rel="gsdoc" href="STScript.html#method$STScript-source">-source</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STScript+scriptWithSource:language:">scriptWithSource:language:</a></h3>
<h3><a name="method$STScript+scriptWithSource:language:">scriptWithSource:&nbsp;language:&nbsp;</a></h3>
+ (id) <b>scriptWithSource:</b> (NSString*)aString<b> language:</b> (NSString*)lang;<br />
<p>
@ -58,7 +55,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScript-initWithSource:language:">initWithSource:language:</a></h3>
<h3><a name="method$STScript-initWithSource:language:">initWithSource:&nbsp;language:&nbsp;</a></h3>
- (id) <b>initWithSource:</b> (NSString*)aString<b> language:</b> (NSString*)lang;<br />
<p>
@ -66,7 +63,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScript-language">language</a></h3>
<h3><a name="method$STScript-language">language&nbsp;</a></h3>
- (NSString*) <b>language</b>;<br />
<p>
@ -74,7 +71,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScript-setLanguage:">setLanguage:</a></h3>
<h3><a name="method$STScript-setLanguage:">setLanguage:&nbsp;</a></h3>
- (void) <b>setLanguage:</b> (NSString*)name;<br />
<p>
@ -82,7 +79,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScript-setSource:">setSource:</a></h3>
<h3><a name="method$STScript-setSource:">setSource:&nbsp;</a></h3>
- (void) <b>setSource:</b> (NSString*)aString;<br />
<p>
@ -90,7 +87,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScript-source">source</a></h3>
<h3><a name="method$STScript-source">source&nbsp;</a></h3>
- (NSString*) <b>source</b>;<br />
<p>
@ -98,7 +95,27 @@
</p>
<hr width="25%" align="left" />
<a name="_STScript_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STScript Class</h2>
<h3><a name="ivariable$STScript*language">language</a></h3>
@protected NSString* <b>language</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STScript*source">source</a></h3>
@protected NSString* <b>source</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STScriptObject" up="StepTalk">
<head>
<title>STScriptObject class documentation</title>
<author name="Generated by me"></author>
<author name="Generated by stevko"></author>
</head>
<body>
<front><contents /></front>
@ -18,6 +18,21 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="STEnvironment*" name="environment" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="ivars" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSMutableDictionary*" name="methodDictionary" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>scriptObject</sel>
<desc>

View file

@ -4,12 +4,13 @@
<title>STScriptObject class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STScriptObject">STScriptObject class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Generated by me</dt>
<dt>Generated by stevko</dt>
<dd>
</dd>
</dl>
@ -50,6 +51,9 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STScriptObject_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject+scriptObject">+scriptObject</a></li>
@ -67,7 +71,7 @@
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-setObject:forVariable:">-setObject:forVariable:</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STScriptObject+scriptObject">scriptObject</a></h3>
<h3><a name="method$STScriptObject+scriptObject">scriptObject&nbsp;</a></h3>
+ (id) <b>scriptObject</b>;<br />
<p>
@ -76,7 +80,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-addMethod:">addMethod:</a></h3>
<h3><a name="method$STScriptObject-addMethod:">addMethod:&nbsp;</a></h3>
- (void) <b>addMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
<p>
@ -84,7 +88,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-environment">environment</a></h3>
<h3><a name="method$STScriptObject-environment">environment&nbsp;</a></h3>
- (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*) <b>environment</b>;<br />
<p>
@ -92,7 +96,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-initWithInstanceVariableNames:">initWithInstanceVariableNames:</a></h3>
<h3><a name="method$STScriptObject-initWithInstanceVariableNames:">initWithInstanceVariableNames:&nbsp;</a></h3>
- (id) <b>initWithInstanceVariableNames:</b> (NSString*)names;<br />
<p>
@ -100,7 +104,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-instanceVariableNames">instanceVariableNames</a></h3>
<h3><a name="method$STScriptObject-instanceVariableNames">instanceVariableNames&nbsp;</a></h3>
- (NSArray*) <b>instanceVariableNames</b>;<br />
<p>
@ -108,7 +112,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-methodDictionary">methodDictionary</a></h3>
<h3><a name="method$STScriptObject-methodDictionary">methodDictionary&nbsp;</a></h3>
- (NSDictionary*) <b>methodDictionary</b>;<br />
<p>
@ -116,7 +120,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-methodNames">methodNames</a></h3>
<h3><a name="method$STScriptObject-methodNames">methodNames&nbsp;</a></h3>
- (NSArray*) <b>methodNames</b>;<br />
<p>
@ -124,7 +128,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-methodWithName:">methodWithName:</a></h3>
<h3><a name="method$STScriptObject-methodWithName:">methodWithName:&nbsp;</a></h3>
- (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>) <b>methodWithName:</b> (NSString*)aName;<br />
<p>
@ -132,7 +136,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-objectForVariable:">objectForVariable:</a></h3>
<h3><a name="method$STScriptObject-objectForVariable:">objectForVariable:&nbsp;</a></h3>
- (id) <b>objectForVariable:</b> (NSString*)aName;<br />
<p>
@ -140,7 +144,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-removeMethod:">removeMethod:</a></h3>
<h3><a name="method$STScriptObject-removeMethod:">removeMethod:&nbsp;</a></h3>
- (void) <b>removeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
<p>
@ -148,7 +152,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-removeMethodWithName:">removeMethodWithName:</a></h3>
<h3><a name="method$STScriptObject-removeMethodWithName:">removeMethodWithName:&nbsp;</a></h3>
- (void) <b>removeMethodWithName:</b> (NSString*)aName;<br />
<p>
@ -156,7 +160,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-setEnvironment:">setEnvironment:</a></h3>
<h3><a name="method$STScriptObject-setEnvironment:">setEnvironment:&nbsp;</a></h3>
- (void) <b>setEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
<p>
@ -165,7 +169,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptObject-setObject:forVariable:">setObject:forVariable:</a></h3>
<h3><a name="method$STScriptObject-setObject:forVariable:">setObject:&nbsp;forVariable:&nbsp;</a></h3>
- (void) <b>setObject:</b> (id)anObject<b> forVariable:</b> (NSString*)aName;<br />
<p>
@ -173,6 +177,33 @@
</p>
<hr width="25%" align="left" />
<a name="_STScriptObject_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STScriptObject Class</h2>
<h3><a name="ivariable$STScriptObject*environment">environment</a></h3>
@protected STEnvironment* <b>environment</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STScriptObject*ivars">ivars</a></h3>
@protected NSMutableDictionary* <b>ivars</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STScriptObject*methodDictionary">methodDictionary</a></h3>
@protected NSMutableDictionary* <b>methodDictionary</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="002000000000">
Software documentation for the STScriptObject protocol
@ -194,7 +225,7 @@
<li><a rel="gsdoc" href="STScriptObject.html#method$(STScriptObject)-instanceVariableNames">-instanceVariableNames</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$(STScriptObject)-instanceVariableNames">instanceVariableNames</a></h3>
<h3><a name="method$(STScriptObject)-instanceVariableNames">instanceVariableNames&nbsp;</a></h3>
- (NSArray*) <b>instanceVariableNames</b>;<br />
<p>
@ -204,5 +235,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STScripting" up="StepTalk">
<head>
<title>STScripting protocol documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>

View file

@ -4,12 +4,13 @@
<title>STScripting protocol documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STScripting">STScripting protocol documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -78,7 +79,7 @@
<li><a rel="gsdoc" href="STScripting.html#method$(STScripting)-isClass">-isClass</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$(STScripting)+classForScripting">classForScripting</a></h3>
<h3><a name="method$(STScripting)+classForScripting">classForScripting&nbsp;</a></h3>
+ (Class) <b>classForScripting</b>;<br />
<p>
@ -86,7 +87,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STScripting)+className">className</a></h3>
<h3><a name="method$(STScripting)+className">className&nbsp;</a></h3>
+ (NSString*) <b>className</b>;<br />
<p>
@ -94,7 +95,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STScripting)+isClass">isClass</a></h3>
<h3><a name="method$(STScripting)+isClass">isClass&nbsp;</a></h3>
+ (BOOL) <b>isClass</b>;<br />
<p>
@ -102,7 +103,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STScripting)-classForScripting">classForScripting</a></h3>
<h3><a name="method$(STScripting)-classForScripting">classForScripting&nbsp;</a></h3>
- (Class) <b>classForScripting</b>;<br />
<p>
@ -110,7 +111,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STScripting)-className">className</a></h3>
<h3><a name="method$(STScripting)-className">className&nbsp;</a></h3>
- (NSString*) <b>className</b>;<br />
<p>
@ -118,7 +119,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$(STScripting)-isClass">isClass</a></h3>
<h3><a name="method$(STScripting)-isClass">isClass&nbsp;</a></h3>
- (BOOL) <b>isClass</b>;<br />
<p>
@ -128,5 +129,6 @@
<hr width="25%" align="left" />
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STScriptsManager" up="StepTalk">
<head>
<title>STScriptsManager class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Stefan Urbanek</copy>
</head>
@ -21,6 +18,16 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="NSArray*" name="scriptSearchPaths" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="scriptsDomainName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id" factory="yes">
<sel>defaultManager</sel>
<desc>

View file

@ -4,12 +4,13 @@
<title>STScriptsManager class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STScriptsManager">STScriptsManager class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -33,6 +34,9 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STScriptsManager_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STScriptsManager.html#method$STScriptsManager+defaultManager">+defaultManager</a></li>
@ -46,7 +50,7 @@
<li><a rel="gsdoc" href="STScriptsManager.html#method$STScriptsManager-validScriptSearchPaths">-validScriptSearchPaths</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STScriptsManager+defaultManager">defaultManager</a></h3>
<h3><a name="method$STScriptsManager+defaultManager">defaultManager&nbsp;</a></h3>
+ (id) <b>defaultManager</b>;<br />
<p>
@ -55,7 +59,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-allScripts">allScripts</a></h3>
<h3><a name="method$STScriptsManager-allScripts">allScripts&nbsp;</a></h3>
- (NSArray*) <b>allScripts</b>;<br />
<p>
@ -63,7 +67,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-initWithDomainName:">initWithDomainName:</a></h3>
<h3><a name="method$STScriptsManager-initWithDomainName:">initWithDomainName:&nbsp;</a></h3>
- (id) <b>initWithDomainName:</b> (NSString*)name;<br />
This is a designated initialiser for the class.<br />
<p>
@ -75,7 +79,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-scriptSearchPaths">scriptSearchPaths</a></h3>
<h3><a name="method$STScriptsManager-scriptSearchPaths">scriptSearchPaths&nbsp;</a></h3>
- (NSArray*) <b>scriptSearchPaths</b>;<br />
<p>
@ -88,7 +92,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-scriptWithName:">scriptWithName:</a></h3>
<h3><a name="method$STScriptsManager-scriptWithName:">scriptWithName:&nbsp;</a></h3>
- (<a rel="gsdoc" href="STFileScript.html#class$STFileScript">STFileScript</a>*) <b>scriptWithName:</b> (NSString*)aString;<br />
<p>
@ -97,7 +101,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-scriptsDomainName">scriptsDomainName</a></h3>
<h3><a name="method$STScriptsManager-scriptsDomainName">scriptsDomainName&nbsp;</a></h3>
- (NSString*) <b>scriptsDomainName</b>;<br />
<p>
@ -105,7 +109,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-setScriptSearchPaths:">setScriptSearchPaths:</a></h3>
<h3><a name="method$STScriptsManager-setScriptSearchPaths:">setScriptSearchPaths:&nbsp;</a></h3>
- (void) <b>setScriptSearchPaths:</b> (NSArray*)anArray;<br />
<p>
@ -113,7 +117,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-setScriptSearchPathsToDefaults">setScriptSearchPathsToDefaults</a></h3>
<h3><a name="method$STScriptsManager-setScriptSearchPathsToDefaults">setScriptSearchPathsToDefaults&nbsp;</a></h3>
- (void) <b>setScriptSearchPathsToDefaults</b>;<br />
<p>
@ -121,7 +125,7 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<h3><a name="method$STScriptsManager-validScriptSearchPaths">validScriptSearchPaths</a></h3>
<h3><a name="method$STScriptsManager-validScriptSearchPaths">validScriptSearchPaths&nbsp;</a></h3>
- (NSArray*) <b>validScriptSearchPaths</b>;<br />
<p>
@ -130,7 +134,27 @@ This is a designated initialiser for the class.<br />
</p>
<hr width="25%" align="left" />
<a name="_STScriptsManager_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STScriptsManager Class</h2>
<h3><a name="ivariable$STScriptsManager*scriptSearchPaths">scriptSearchPaths</a></h3>
@protected NSArray* <b>scriptSearchPaths</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STScriptsManager*scriptsDomainName">scriptsDomainName</a></h3>
@protected NSString* <b>scriptsDomainName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STSelector" up="StepTalk">
<head>
<title>STSelector class documentation</title>
<author name="Generated by me"></author>
<author name="Generated by stevko"></author>
</head>
<body>
<front><contents /></front>
@ -16,6 +16,16 @@
<desc>
<em>Description forthcoming.</em>
</desc>
<ivariable type="SEL" name="sel" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<ivariable type="NSString*" name="selectorName" validity="protected">
<desc>
<em>Description forthcoming.</em>
</desc>
</ivariable>
<method type="id">
<sel>initWithName:</sel>
<arg type="NSString*">aString</arg>

View file

@ -4,12 +4,13 @@
<title>STSelector class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STSelector">STSelector class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Generated by me</dt>
<dt>Generated by stevko</dt>
<dd>
</dd>
</dl>
@ -32,16 +33,18 @@
<em>Description forthcoming.</em>
</p>
<hr width="50%" align="left" />
<a href="#_STSelector_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-initWithName:">-initWithName:</a></li>
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-initWithSelector:">-initWithSelector:</a></li>
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-selectorName">-selectorName</a></li>
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-selectorValue">-selectorValue</a></li>
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-stringValue">-stringValue</a></li>
</ul>
<hr width="50%" align="left" />
<h3><a name="method$STSelector-initWithName:">initWithName:</a></h3>
<h3><a name="method$STSelector-initWithName:">initWithName:&nbsp;</a></h3>
- (id) <b>initWithName:</b> (NSString*)aString;<br />
<p>
@ -49,7 +52,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STSelector-initWithSelector:">initWithSelector:</a></h3>
<h3><a name="method$STSelector-initWithSelector:">initWithSelector:&nbsp;</a></h3>
- (id) <b>initWithSelector:</b> (SEL)aSel;<br />
<p>
@ -57,7 +60,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STSelector-selectorName">selectorName</a></h3>
<h3><a name="method$STSelector-selectorName">selectorName&nbsp;</a></h3>
- (NSString*) <b>selectorName</b>;<br />
<p>
@ -65,7 +68,7 @@
</p>
<hr width="25%" align="left" />
<h3><a name="method$STSelector-selectorValue">selectorValue</a></h3>
<h3><a name="method$STSelector-selectorValue">selectorValue&nbsp;</a></h3>
- (SEL) <b>selectorValue</b>;<br />
<p>
@ -73,7 +76,27 @@
</p>
<hr width="25%" align="left" />
<a name="_STSelector_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for STSelector Class</h2>
<h3><a name="ivariable$STSelector*sel">sel</a></h3>
@protected SEL <b>sel</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<h3><a name="ivariable$STSelector*selectorName">selectorName</a></h3>
@protected NSString* <b>selectorName</b>;<br />
<p>
<em>Description forthcoming.</em>
</p>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
<gsdoc base="STUndefinedObject" up="StepTalk">
<head>
<title>STUndefinedObject class documentation</title>
<author name="Stefan Urbanek">
<email address="urbanek@host.sk">
urbanek@host.sk
</email>
</author>
<copy>2002 Free Software Foundation</copy>
</head>

View file

@ -4,12 +4,13 @@
<title>STUndefinedObject class documentation</title>
</head>
<body>
<font face="serif">
<a href="StepTalk.html">Up</a>
<br />
<h1><a name="title$STUndefinedObject">STUndefinedObject class documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Stefan Urbanek (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt>Stefan Urbanek</dt>
<dd>
</dd>
</dl>
@ -35,5 +36,6 @@
</p>
<br />
<a href="StepTalk.html">Up</a>
</body>
</font>
</body>
</html>

View file

@ -5,16 +5,16 @@
<title>StepTalk Documentation</title>
</head>
<body>
<br />
<font face="serif">
<h1><a name="title$StepTalk">StepTalk Documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt><a href="http://urbanek.host.sk">Stefan Urbanek</a> (<a href="mailto:urbanek@host.sk"><code>urbanek@host.sk</code></a>)</dt>
<dt><a href="http://stefan.agentfarms.net">Stefan Urbanek</a> (<a href="mailto:stefan@agentfarms.net"><code>stefan@agentfarms.net</code></a>)</dt>
<dd>
</dd>
</dl>
<p><b>Version:</b> 0.7.1</p>
<p><b>Date:</b> 2003 Apr 22</p>
<p><b>Version:</b> 0.10.0</p>
<p><b>Date:</b> 2005 Sep 5</p>
@ -31,12 +31,17 @@
<b>Class</b>
<ul>
<li><a rel="gsdoc" href="STActor.html#class$STActor">STActor</a></li>
<li><a rel="gsdoc" href="STBundleInfo.html#class$STBundleInfo">STBundleInfo</a></li>
<li><a rel="gsdoc" href="STContext.html#class$STContext">STContext</a></li>
<li><a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a></li>
<li><a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a></li>
<li><a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a></li>
<li><a rel="gsdoc" href="STLanguage.html#class$STLanguage">STLanguage</a></li>
<li><a rel="gsdoc" href="STMethod.html#class$STMethod">STMethod</a></li>
<li><a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a></li>
<li><a rel="gsdoc" href="STFileScript.html#class$STFileScript">STFileScript</a></li>
<li><a rel="gsdoc" href="STLanguageManager.html#class$STLanguageManager">STLanguageManager</a></li>
<li><a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a></li>
<li><a rel="gsdoc" href="STRemoteConversation.html#class$STRemoteConversation">STRemoteConversation</a></li>
<li><a rel="gsdoc" href="STScript.html#class$STScript">STScript</a></li>
<li><a rel="gsdoc" href="STScriptObject.html#class$STScriptObject">STScriptObject</a></li>
<li><a rel="gsdoc" href="STScriptsManager.html#class$STScriptsManager">STScriptsManager</a></li>
@ -45,10 +50,14 @@
</ul>
<b>Protocol</b>
<ul>
<li><a rel="gsdoc" href="STMethod.html#protocol$(STMethod)"></a></li>
<li><a rel="gsdoc" href="STScripting.html#protocol$(STScripting)"></a></li>
<li><a rel="gsdoc" href="STConversation.html#protocol$(STConversation)">&lt;STConversation&gt;</a></li>
<li><a rel="gsdoc" href="STRemoteConversation.html#protocol$(STEnvironmentProcess)">&lt;STEnvironmentProcess&gt;</a></li>
<li><a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">&lt;STMethod&gt;</a></li>
<li><a rel="gsdoc" href="STScriptObject.html#protocol$(STScriptObject)">&lt;STScriptObject&gt;</a></li>
<li><a rel="gsdoc" href="STScripting.html#protocol$(STScripting)">&lt;STScripting&gt;</a></li>
</ul>
</div>
<br />
</body>
</font>
</body>
</html>

File diff suppressed because it is too large Load diff

View file

@ -172,3 +172,24 @@ handler: message to guarded block.
guardedBlock handler: handlerBlock.
If exception occures in guarded block, then handler block is evaluated.
5. Temporaries in blocks
------------------------------
Like other modern Smalltalk implementations, StepTalk supports
temporaries in blocks. These block temporaries are declared after the
block's arguments in the same way as the temporaries of a method.
Example with no arguments:
[| arr | arr := #( 1 2 3 ). arr addObject: arr count. arr]
Exmaple with some arguments:
[:x :y | | xsqr ysqr | xsqr := x * x. ysqr := y * y. xsqr + ysqr]
Note that the syntax of a block with temporaries and no arguments
begins with the same prefix as a script source (due to an unfortunate
choice in the past). This means you cannot start a simple script,
i.e., a list of smalltalk statements, with such a block. The simple
workaround is to either enclose the block in parentheses or precede
the statement with an empty list of temporaries (two vertical bars).

View file

@ -72,7 +72,7 @@ main
env setFullScriptingEnabled: YES.
"*** Create conversation ***"
conv := STConversation conversationWithEnvironment: env language: 'Smalltalk'.
conv := STConversation conversationWithContext: env language: 'Smalltalk'.
conv setLanguage: 'Smalltalk'.
"*** Execute all tests here ***"
@ -123,7 +123,7 @@ executeTest: path
Transcript show: (numTestFilesOK + numTestFilesFailed + 1).
Transcript showLine: ': ', path, ' start ***'.
code := NSString stringWithContentsOfFile: path.
res := conv runScriptFromString: code.
res := conv interpretScript: code; result.
Transcript showLine: '*** Test Case ', path, ' finish ***'.
(numTestsFailed = 0)
ifTrue:
@ -166,13 +166,13 @@ showSummary
!
should:val
should: val
val ifFalse: [self testfail] ifTrue: [self testok].
^self
!
should:val desc*esc
should: val desc: desc
val ifFalse: [self testfail: desc] ifTrue: [self testok: desc].
^self

View file

@ -1,7 +0,0 @@
*.app
*.debug
*.profile
shared_*obj
*.bundle
*.stmodule
*.stlanguage

View file

@ -1,5 +0,0 @@
2003 Apr 04 David Ayers <d.ayers@inode.at>
* ChangeLog: Added new file.
* GNUmakefile: Added flags to show all warnings except for import.

View file

@ -1,35 +0,0 @@
#
# StepTalk examples
#
# Copyright (C) 2000 Stefan Urbanek
#
# This file is part of the StepTalk.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02111, USA.
#
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = Server
Server_OBJC_FILES = Server.m
ADDITIONAL_TOOL_LIBS = -lStepTalk
ADDITIONAL_OBJCFLAGS = -Wall -Wno-import
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/tool.make
-include Makefile.postamble

View file

@ -1,65 +0,0 @@
/*
Server.m
StepTalk scriptable server example
*/
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSConnection.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSRunLoop.h>
#import <StepTalk/StepTalk.h>
#include <stdio.h>
@interface Server:NSObject
- say:(NSString *)string;
@end
@implementation Server
- (STEnvironment *)scriptingEnvironment
{
/* here we should add some objects or class references ... */
return [STEnvironment defaultScriptingEnvironment];
}
- (NSDate *)date
{
return [NSDate date];
}
- say:(NSString *)string
{
printf("%s\n",[string cString]);
return self;
}
@end
int main(int argc, const char **argv)
{
NSAutoreleasePool *pool;
NSConnection *connection;
Server *server = [Server new];
pool = [NSAutoreleasePool new];
connection = [NSConnection newRegisteringAtName:@"Server"
withRootObject:server];
if (!connection)
{
NSLog(@"Unable to register server");
[pool release];
return 1;
}
NSLog(@"Server started");
[[NSRunLoop currentRunLoop] run];
RELEASE(connection);
RELEASE(pool);
return 0;
}

View file

@ -1,20 +0,0 @@
" talkToServer.stalk
Server script example
Ussage:
stalk Server talkToServer.st [message]
"
| message |
((Args count) < 1 )
ifTrue:
[
message := 'Hello!'. ^0
]
ifFalse:
[
message := Args objectAtIndex: 0. ^0
].
Server say:message

View file

@ -1,3 +1,31 @@
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* STShell.m (-initWithConversation:):
Check the result of the super class initializer and assign it to
self.
* stshell_tool.m (-run, main): Fix minor space leaks.
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* STShell.h:
* STShell.m:
* STShell+output.m: Miscellaneous changes to shut down compiler
warnings.
2005 Aug 30
* use STLanguageManager instead of removed STLanguage
2005 Aug 15
* Added distant environments
* Removed named objects as they were causing troubles with distant
environments
* Suspend completion for distant environments
Warning: option 'environment' has different meaning. See stshell --help.
2003 Sep 21
* Added named objects FileManager, LastCommand and LastObject

View file

@ -31,6 +31,7 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSBundle.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSNotification.h>
#import <Foundation/NSException.h>
#import <Foundation/NSSet.h>
@ -61,25 +62,25 @@
- showResult:(id)obj
{
const char *className = [NSStringFromClass([obj class]) cString];
int objIndex = [objectStack count] - 1;
int i;
NSInteger objIndex = [objectStack count] - 1;
NSUInteger i;
if(obj)
{
if([obj isKindOfClass:[NSArray class]])
{
printf("(%i) %s\n", objIndex, className);
printf("(%li) %s\n", (long)objIndex, className);
for(i = 0;i<[obj count]; i++)
{
printf("%i %s\n", i,
printf("%lu %s\n", (unsigned long)i,
[self displayCStringForObject:[obj objectAtIndex:i]]);
}
}
else if([obj isKindOfClass:[NSSet class]])
{
printf("(%i) %s\n", objIndex, className);
printf("(%li) %s\n", (long)objIndex, className);
obj = [[obj allObjects] sortedArrayUsingSelector:@selector(compare:)];
for(i = 0;i<[obj count]; i++)
@ -94,7 +95,7 @@
NSString *key;
NSArray *keys;
printf("(%i) %s\n", objIndex, className);
printf("(%li) %s\n", (long)objIndex, className);
keys = [[obj allKeys] sortedArrayUsingSelector:@selector(compare:)];
@ -108,13 +109,13 @@
}
else
{
printf("(%i) %s\n", objIndex, [self displayCStringForObject:obj]);
printf("(%li) %s\n", (long)objIndex, [self displayCStringForObject:obj]);
}
}
return self;
}
- (char *)displayCStringForObject:(id)object
- (const char *)displayCStringForObject:(id)object
{
NSString *str = [object description];
@ -139,9 +140,9 @@
- (id)listObjects
{
NSString *str;
int i;
id object;
NSString *str;
NSUInteger i;
id object;
printf("Objects\n");
for(i = 0; i < [objectStack count]; i++)
@ -156,7 +157,7 @@
str = [str stringByAppendingString:@"..."];
}
printf("%4i: '%s' (%s)\n", i,
printf("%4lu: '%s' (%s)\n", (unsigned long)i,
[str cString],
[[[object class] description] cString]);
}

View file

@ -47,23 +47,16 @@
BOOL updateCompletionList;
NSArray *completionList;
BOOL completionEnabled;
}
- initWithEnvironment:(STEnvironment *)env;
- initWithConversation:(STConversation *)conv;
- (void)setLanguage:(NSString *)langName;
- (void)setEnvironment:(STEnvironment *)newEnv;
- (STEnvironment *)environment;
- (void)run;
- show:(id)anObject;
- showLine:(id)anObject;
- (id)executeLine:(NSString *)line;
- showResult:(id)obj;
- showException:(NSException *)exception;
- (void)showError:(NSString *)errString;
@end
@interface STShell(STShellOutput)
@ -71,7 +64,8 @@
- show:(id)anObject;
- showLine:(id)anObject;
- showResult:(id)obj;
- (char *)displayCStringForObject:(id)object;
- (void)showError:(NSString *)errString;
- (const char *)displayCStringForObject:(id)object;
- showException:(NSException *)exception;
- (id)listObjects;

View file

@ -40,6 +40,7 @@
#import <Foundation/NSValue.h>
#include <readline/readline.h>
#include <readline/history.h>
static Class NSString_class;
static Class NSNumber_class;
@ -54,7 +55,7 @@ static STShell *sharedShell = nil;
- (void)initReadline;
@end
int complete_handler(void)
int complete_handler(int count, int key)
{
return [sharedShell completion];
}
@ -72,30 +73,31 @@ int complete_handler(void)
return sharedShell;
}
- initWithEnvironment:(STEnvironment *)env
- initWithConversation:(STConversation *)conv
{
self = [super init];
[self initReadline];
if ((self = [super init]) != nil)
{
[self initReadline];
objectStack = [[NSMutableArray alloc] init];
[[NSNotificationCenter defaultCenter]
objectStack = [[NSMutableArray alloc] init];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(bundleLoaded:)
name:NSBundleDidLoadNotification
object:nil];
scriptsManager = RETAIN([STScriptsManager defaultManager]);
prompt = @"StepTalk > ";
conversation = [[STConversation alloc] initWithEnvironment:env language:nil];
/* FIXME: make this more clever for completion handler */
if(!sharedShell)
{
sharedShell = self;
}
scriptsManager = RETAIN([STScriptsManager defaultManager]);
prompt = @"StepTalk > ";
conversation = RETAIN(conv);
/* FIXME: make this more clever for completion handler */
if(!sharedShell)
{
sharedShell = self;
}
}
return self;
}
@ -140,38 +142,24 @@ int complete_handler(void)
[conversation setLanguage:langName];
}
- (void)setEnvironment:(STEnvironment *)newEnv
{
[conversation setEnvironment:newEnv];
}
- (STEnvironment *)environment
{
return [conversation environment];
}
- (void)run
{
STEnvironment *env = [conversation environment];
NSString *line;
id result;
[env setCreatesUnknownObjects:YES];
/* Add standard objects */
[env setObject:self forName:@"Shell"];
[env setObject:self forName:@"Transcript"];
[env setObject:objectStack forName:@"Objects"];
[env setObject:[NSFileManager defaultManager] forName:@"FileManager"];
/* FIXME: This is unsafe !*/
[env setObject:env forName:@"Environment"];
NSString *line;
id result;
[self showLine:@"Welcome to the StepTalk shell."];
// NSLog(@"Environment %@", env);
if(![conversation isKindOfClass:[STRemoteConversation class]])
{
completionEnabled = YES;
}
else
{
[self showLine:@"Note: Completion disabled for distant conversation"];
}
while(1)
{
line = [self readLine];
@ -202,7 +190,6 @@ int complete_handler(void)
}
- (id)executeLine:(NSString *)line
{
STEnvironment *env = [conversation environment];
NSString *cmd;
id result = nil;
@ -210,20 +197,18 @@ int complete_handler(void)
cmd = [line stringByAppendingString:@" "];
NS_DURING
result = [conversation runScriptFromString:cmd];
[conversation interpretScript:cmd];
result = [conversation result];
NS_HANDLER
[self showException:localException];
NS_ENDHANDLER
[env setObject:line forName:@"LastCommand"];
[env setObject:result forName:@"LastObject"];
return result;
}
- (NSString *)readLine
{
const char *str;
char *str;
NSString *actualPrompt = prompt;
NSString *line = @"";
BOOL done = NO;
@ -261,7 +246,7 @@ int complete_handler(void)
- (int)completion
{
STEnvironment *env = [conversation environment];
STContext *context;
NSEnumerator *enumerator;
NSMutableSet *set;
NSString *match;
@ -271,6 +256,11 @@ int complete_handler(void)
int pos = 0;
int c;
if(!completionEnabled)
{
return 0;
}
if(rl_point <= 0)
{
return 0;
@ -305,7 +295,8 @@ int complete_handler(void)
}
}
enumerator = [[env knownObjectNames] objectEnumerator];
context = [conversation context];
enumerator = [[context knownObjectNames] objectEnumerator];
while( (str = [enumerator nextObject]) )
{
if( [str hasPrefix:match] )
@ -372,8 +363,8 @@ int complete_handler(void)
- (id)executeScriptNamed:(NSString *)scriptName
{
STScript *script = [scriptsManager scriptWithName:scriptName];
id result = nil;
STFileScript *script = [scriptsManager scriptWithName:scriptName];
id result = nil;
if(!script)
{

View file

@ -38,11 +38,15 @@
@interface STShellTool:NSObject
{
NSArray *arguments;
unsigned int currentArg;
STConversation *conversation;
NSArray *arguments;
NSUInteger currentArg;
NSString *envName;
NSString *languageName;
NSString *environmentName;
NSString *hostName;
NSString *typeName;
NSString *languageName;
}
- (int)parseArguments;
- (NSString *)nextArgument;
@ -92,14 +96,34 @@
}
else if ([@"environment" hasPrefix:arg])
{
RELEASE(envName);
envName = [self nextArgument];
if(!envName)
RELEASE(environmentName);
environmentName = [self nextArgument];
if(!environmentName)
{
[NSException raise:@"STShellToolException"
format:@"Environment name expected"];
}
}
else if ([@"host" hasPrefix:arg])
{
RELEASE(hostName);
hostName = [self nextArgument];
if(!hostName)
{
[NSException raise:@"STShellToolException"
format:@"Host name expected"];
}
}
else if ([@"type" hasPrefix:arg])
{
RELEASE(typeName);
typeName = [self nextArgument];
if(!typeName)
{
[NSException raise:@"STShellToolException"
format:@"Environment description (type) name expected"];
}
}
else if(!isOption)
{
break;
@ -128,39 +152,71 @@
{
currentArg--;
}
- (void)run
{
/* Method taken from stexec.m - look there for updates */
- (void)createConversation
{
STEnvironmentDescription *desc;
STEnvironment *env;
STShell *shell;
STEnvironment *environment;
[self parseArguments];
if(!envName || [envName isEqualToString:@""])
if(environmentName)
{
env = [STEnvironment environmentWithDefaultDescription];
/* user wants to connect to a distant environment */
conversation = [[STRemoteConversation alloc]
initWithEnvironmentName:environmentName
host:hostName
language:languageName];
if(!conversation)
{
NSLog(@"Unable to connect to %@@%@", environmentName, hostName);
return;
}
}
else
{
desc = [STEnvironmentDescription descriptionWithName:envName];
env = [STEnvironment environmentWithDescription:desc];
/* User wants local temporary environment */
if(!typeName || [typeName isEqualToString:@""])
{
environment = [STEnvironment environmentWithDefaultDescription];
}
else
{
desc = [STEnvironmentDescription descriptionWithName:typeName];
environment = [STEnvironment environmentWithDescription:desc];
}
/* Register basic objects: Environment, Transcript */
[environment setObject:environment forName:@"Environment"];
[environment loadModule:@"SimpleTranscript"];
[environment setCreatesUnknownObjects:YES];
/* FIXME: make this an option */
[environment setFullScriptingEnabled:YES];
conversation = [[STConversation alloc] initWithContext:environment
language:languageName];
}
}
/* FIXME: make this an option */
[env setFullScriptingEnabled:YES];
- (void)run
{
STShell *shell;
[self parseArguments];
[self createConversation];
shell = [[STShell alloc] initWithEnvironment:env];
if(!languageName || [languageName isEqualToString:@""])
{
languageName = [STLanguage defaultLanguageName];
languageName = [[STLanguageManager defaultManager] defaultLanguage];
}
[shell setLanguage:languageName];
[conversation setLanguage:languageName];
shell = [[STShell alloc] initWithConversation:conversation];
[shell run];
NSDebugLog(@"Exiting StepTalk shell");
NSDebugLog(@"Exiting StepTalk shell");
RELEASE(shell);
}
- (void)printHelp
@ -172,7 +228,9 @@
"Options are:\n"
" -help this text\n"
" -language lang use language lang\n"
" -environment env use scripting environment with name env\n",
" -environment env use scripting environment with name env\n"
" -host host find environment on host\n"
" -type desc use environment description with name 'desc'\n",
[[info processName] cString],[[info processName] cString]
);
}
@ -189,7 +247,7 @@ int main(int argc, const char **argv)
tool = [[STShellTool alloc] init];
[tool run];
RELEASE(tool);
RELEASE(pool);
return 0;

View file

@ -0,0 +1,48 @@
| actor engine source method |
actor := STActor actorInEnvironment:Environment.
"Set ivars"
ivars := NSMutableDictionary dictionary.
ivars setObject:1 forKey:'number'.
actor setInstanceVariables:ivars.
" Get the proper engine "
engine := STEngine engineForLanguage:'Smalltalk'.
" This is the source of new method "
source := 'increment
number := number + 1. ^self'.
" Create method "
method := engine methodFromSource:source
forReceiver:actor
inContext:Environment.
" Add the method to the actor "
actor addMethod:method.
" Add another method with an argument "
source := 'setNumber:i number := i. ^self'.
method := engine methodFromSource:source
forReceiver:actor
inContext:Environment.
actor addMethod:method.
source := 'print
Transcript showLine: (\'The number is \',
(number description)). ^self'.
method := engine methodFromSource:source
forReceiver:actor
inContext:Environment.
actor addMethod:method.
" Send it! "
actor print.
actor increment.
actor print.
actor increment.
actor print.
actor setNumber:10.
actor print.

View file

@ -1,7 +1,7 @@
" List contents of current directory "
" Script variables "
| fileManager path files dict |
| fileManager path files |
" Get default file manager "
fileManager := NSFileManager defaultManager.
@ -18,7 +18,7 @@ files := fileManager directoryContentsAtPath:path.
" For each file from files do the following ..."
files do:
[ :file |
[ :file | | dict |
dict := fileManager fileAttributesAtPath: (path / file)
traverseLink:NO.

View file

@ -25,7 +25,7 @@ main
env setObject:self forName:'Shell'.
" Create and setup engine "
engine := STEngine engineForLanguageWithName:'Smalltalk'.
engine := STEngine engineForLanguage:'Smalltalk'.
" Do the loop! "

View file

@ -37,7 +37,7 @@ ADDITIONAL_BUNDLE_LIBS = -lStepTalk
ADDITIONAL_INCLUDE_DIRS += -I../../Frameworks/
ADDITIONAL_LIB_DIRS += -L../../Frameworks/StepTalk/StepTalk.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)
BUNDLE_INSTALL_DIR:=$(GNUSTEP_INSTALLATION_DIR)/Library/StepTalk/Finders
BUNDLE_INSTALL_DIR:=$(GNUSTEP_LIBRARY)/StepTalk/Finders
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make

View file

@ -35,7 +35,7 @@ ADDITIONAL_BUNDLE_LIBS = -lStepTalk
ADDITIONAL_INCLUDE_DIRS += -I../../Frameworks/
ADDITIONAL_LIB_DIRS += -L../../Frameworks/StepTalk/StepTalk.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)
BUNDLE_INSTALL_DIR:=$(GNUSTEP_INSTALLATION_DIR)/Library/StepTalk/Finders
BUNDLE_INSTALL_DIR:=$(GNUSTEP_LIBRARY)/StepTalk/Finders
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make

View file

@ -11,7 +11,7 @@
{
"NSObject-operators" = {
Use = (Comparison, KeyValueCoding);
}
};
};
Classes =
@ -53,7 +53,7 @@
{
"+=" = "addObject:";
"-=" = "removeObject:";
}
};
};
NSDictionary =
@ -61,7 +61,7 @@
Super = NSObject;
SymbolicSelectors = {
"@" = "objectForKey:";
}
};
};
NSUserDefaults =
@ -69,7 +69,7 @@
Super = NSObject;
SymbolicSelectors = {
"@" = "objectForKey:";
}
};
};
NSString =
@ -93,7 +93,7 @@
SymbolicSelectors =
{
"+=" = "appendString:";
}
};
};
NSSet =
@ -102,7 +102,7 @@
SymbolicSelectors =
{
"<" = "isSubsetOfSet:";
}
};
};
NSMutableSet =
@ -112,7 +112,7 @@
{
"+=" = "addObject:";
"-=" = "removeObject:";
}
};
};
NSDate =
@ -121,7 +121,7 @@
SymbolicSelectors =
{
"-" = "timeIntervalSinceDate:";
}
};
};
@ -135,7 +135,7 @@
"<>" = "rangeWith:";
"@" = "pointWith:";
"@@" = "sizeWith:";
}
};
};
}; /* Classes */
}

View file

@ -13,7 +13,7 @@
"writeToFile:atomically:",
"writeToURL:atomically:"
)
}
};
};
Classes =

View file

@ -21,6 +21,10 @@
AllowMethods =
(
"value",
"value:",
"value:value:",
"value:value:value:",
"valueWithArguments:",
"valueWith:",
"valueWith:with:",
"valueWith:with:with:",
@ -41,5 +45,5 @@
Super = nil;
Restriction = AllowAll;
};
}
};
}

View file

@ -25,7 +25,7 @@
"<=" = "isLessOrEqualThan:";
">=" = "isGreatherOrEqualThan:";
}
};
};
NumberArithmetic =

View file

@ -27,17 +27,20 @@ FRAMEWORK_NAME = StepTalk
StepTalk_OBJC_FILES = \
NSInvocation+additions.m \
STActor.m \
STBehaviourInfo.m \
STBundleInfo.m \
STClassInfo.m \
STContext.m \
STConversation.m \
STRemoteConversation.m \
STEngine.m \
STEnvironment.m \
STEnvironmentDescription.m \
STExterns.m \
STFunctions.m \
STFileScript.m \
STLanguage.m \
STLanguageManager.m \
STObjCRuntime.m \
STObjectReference.m \
STScript.m \
@ -53,18 +56,22 @@ StepTalk_OBJC_FILES = \
StepTalkScriptingInfo.m
# FIXME: NOT FINISHED:
# STDistantConversation.m \
# STRemoteConversation.m \
# STDistantEnvironment.m \
STEPTALK_HEADER_FILES = \
STActor.h \
STBundleInfo.h \
STContext.h \
STConversation.h \
STRemoteConversation.h \
STEngine.h \
STEnvironment.h \
STEnvironmentDescription.h \
STExterns.h \
STFunctions.h \
STFileScript.h \
STLanguage.h \
STLanguageManager.h \
STObjCRuntime.h \
STObjectReference.h \
STMethod.h \
@ -81,10 +88,7 @@ StepTalk_HEADER_FILES = $(STEPTALK_HEADER_FILES) \
StepTalk.h
StepTalk_RESOURCE_FILES = ScriptingInfo.plist
STEPTALK_LIBRARY_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/StepTalk
STEPTALK_ENVDEFS_DIR = $(STEPTALK_LIBRARY_DIR)/Environments
StepTalk_RESOURCE_FILES = ScriptingInfo.plist Environments
ADDITIONAL_CPPFLAGS += -pipe
ADDITIONAL_OBJCFLAGS = -Wno-import -DSTEPTALK_VERSION=$(STEPTALK_VERSION)
@ -100,9 +104,7 @@ StepTalk_AGSDOC_FLAGS = \
-Declared StepTalk \
-DocumentationDirectory ../../Documentation/Reference
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
StepTalk_LIBRARIES_DEPEND_UPON += -lgnustep-base -lobjc
endif
StepTalk_LIBRARIES_DEPEND_UPON += -lgnustep-base -lobjc
ifeq ($(check),yes)
ADDITIONAL_OBJCFLAGS += -Werror

View file

@ -34,25 +34,17 @@
# after-all::
# Things to do before installing
before-install::
$(MKDIRS) $(STEPTALK_LIBRARY_DIR)
$(MKDIRS) $(STEPTALK_ENVDEFS_DIR)
# before-install::
# $(MKDIRS) $(STEPTALK_LIBRARY_DIR)
# Things to do after installing
after-install::
@(echo Copying scripting environments...; \
cd Environments;\
for file in *.stenv; do \
$(INSTALL_DATA) $$file $(STEPTALK_ENVDEFS_DIR)/$$file ; \
done;\
)
# after-install::
# Things to do before uninstalling
# before-uninstall::
# Things to do after uninstalling
after-uninstall::
rm -rf $(STEPTALK_ENVDEFS_DIR)
# after-uninstall::
# Things to do before cleaning
# before-clean::

View file

@ -34,8 +34,8 @@ id STObjectFromValueOfType(void *value, const char *type);
+ invocationWithTarget:(id)target selectorName:(NSString *)selectorName;
+ invocationWithTarget:(id)target selector:(SEL)selector;
- (void)setArgumentAsObject:(id)anObject atIndex:(int)anIndex;
- (id)getArgumentAsObjectAtIndex:(int)anIndex;
- (void)setArgumentAsObject:(id)anObject atIndex:(NSInteger)anIndex;
- (id)getArgumentAsObjectAtIndex:(NSInteger)anIndex;
- (id)returnValueAsObject;
@end

View file

@ -31,8 +31,11 @@
#import <Foundation/NSDebug.h>
#import <Foundation/NSException.h>
#import <Foundation/NSValue.h>
#import <Foundation/NSMethodSignature.h>
#import <Foundation/NSString.h>
#import <Foundation/NSValue.h>
#import <GNUstepBase/GSObjCRuntime.h>
#import "STExterns.h"
#import "STObjCRuntime.h"
@ -40,8 +43,6 @@
#import "STSelector.h"
#import "STStructure.h"
#import <objc/objc-api.h>
#if 0
static Class NSNumber_class = nil;
static Class NSString_class = nil;
@ -51,7 +52,7 @@ static Class NSValue_class = nil;
#define CASE_NUMBER_TYPE(otype,type,msgtype)\
case otype: object = [NSNumber numberWith##msgtype:*((type *)value)];\
NSDebugLLog(@"STStructure",\
@" is number value '%@'", object);\
@" is number value '%@'", object);\
break
/** This method is a factory method, that means that you have to release the
@ -61,18 +62,18 @@ id STObjectFromValueOfType(void *value, const char *type)
id object;
NSDebugLLog(@"STStructure",
@"object from value %p of of type '%c'",value,*type);
@"object from value %p of of type '%c'", value, *type);
switch(*type)
switch (*type)
{
case _C_ID:
case _C_CLASS:
object = *((id *)value);
NSDebugLLog(@"STStructure",
@" is object value %p", object);
@" is object value %p", object);
break;
CASE_NUMBER_TYPE(_C_CHR,char,Char);
CASE_NUMBER_TYPE(_C_UCHR,unsigned char, UnsignedChar);
CASE_NUMBER_TYPE(_C_UCHR,unsigned char,UnsignedChar);
CASE_NUMBER_TYPE(_C_SHT,short,Short);
CASE_NUMBER_TYPE(_C_USHT,unsigned short,UnsignedShort);
CASE_NUMBER_TYPE(_C_INT,int,Int);
@ -99,14 +100,16 @@ id STObjectFromValueOfType(void *value, const char *type)
object = nil;
break;
case _C_STRUCT_B:
object = [[STStructure alloc] initWithValue:value
type:type];
object = [[STStructure alloc] initWithValue:value type:type];
AUTORELEASE(object);
break;
case _C_SEL:
object = [[STSelector alloc] initWithSelector:*((SEL *)value)];
AUTORELEASE(object);
break;
case _C_CONST:
object = STObjectFromValueOfType(value, ++type);
break;
case _C_BFLD:
case _C_UNDEF:
case _C_ARY_B:
@ -117,31 +120,31 @@ id STObjectFromValueOfType(void *value, const char *type)
default:
[NSException raise:STInvalidArgumentException
format:@"unhandled ObjC type '%s'",
type];
type];
}
return object;
}
#define CASE_TYPE(otype,type,msgtype)\
case otype:(*((type *)value)) = [anObject msgtype##Value];\
NSDebugLLog(@"STStructure",\
case otype:*((type *)value) = [anObject msgtype##Value];\
NSDebugLLog(@"STStructure",\
@" is number value '%@'", anObject);\
break
void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
{
NSDebugLLog(@"STStructure",
@"value at %p from object '%@' of type '%c'",
value,anObject,*type);
@"value at %p from object '%@' of type '%c'",
value, anObject, *type);
switch(*type)
switch (*type)
{
case _C_ID:
case _C_CLASS:
NSDebugLLog(@"STStructure",
@" is object value");
(*(id *)value) = anObject;
*((id *)value) = anObject;
break;
CASE_TYPE(_C_CHR,char,char);
CASE_TYPE(_C_UCHR,unsigned char,unsignedChar);
@ -157,21 +160,25 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
CASE_TYPE(_C_DBL,double,double);
CASE_TYPE(_C_PTR,void *,pointer);
case _C_CHARPTR: /* FIXME: check if this is good (copy/no copy)*/
(*((const char **)value)) = [[anObject stringValue] cString];
*((const char **)value) = [anObject cString];
NSDebugLLog(@"STStructure",
@" is cstring '%@'", [anObject stringValue]);
@" is cstring '%@'", anObject);
break;
case _C_STRUCT_B:
/* FIXME: chech for struct compatibility */
/* FIXME: check for struct compatibility */
NSDebugLLog(@"STStructure",
@" is structure");
@" is structure");
[(STStructure*)anObject getValue:value];
break;
case _C_SEL:
(*((SEL *)value)) = [anObject selectorValue];
*((SEL *)value) = [anObject selectorValue];
break;
case _C_CONST:
STGetValueOfTypeFromObject(value, ++type, anObject);
break;
case _C_BFLD:
case _C_VOID:
case _C_UNDEF:
@ -184,7 +191,7 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
default:
[NSException raise:STInvalidArgumentException
format:@"unhandled ObjC type '%s'",
type];
type];
}
}
@ -207,18 +214,18 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
NSInvocation *invocation;
SEL sel;
BOOL requiresRegistration = NO;
// NSLog(@"GETTING SELECTOR %@", selectorName);
sel = NSSelectorFromString(selectorName);
if(!sel)
if (!sel)
{
// NSLog(@"REGISTERING SELECTOR");
const char *name = [selectorName cString];
sel = sel_register_name(name);
if(!sel)
sel = sel_registerName(name);
if (!sel)
{
[NSException raise:STInternalInconsistencyException
format:@"Unable to register selector '%@'",
@ -227,28 +234,28 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
}
requiresRegistration = YES;
}
signature = [target methodSignatureForSelector:sel];
/* FIXME: this is workaround for gnustep DO bug (hight priority) */
if(requiresRegistration)
if (requiresRegistration)
{
// NSLog(@"REGISTERING SELECTOR TYPES");
sel = sel_register_typed_name([selectorName cString], [signature methodReturnType]);
sel = GSSelectorFromNameAndTypes([selectorName cString],
[signature methodReturnType]);
// NSLog(@"REGISTERED %@", NSStringFromSelector(sel));
}
if(!signature)
if (!signature)
{
[NSException raise:STInternalInconsistencyException
format:@"No method signature for selector '%@' for "
@"receiver of type %@",
selectorName,[target className]];
selectorName, [target className]];
return nil;
}
invocation = [NSInvocation invocationWithMethodSignature:signature];
[invocation setSelector:sel];
@ -261,19 +268,18 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
{
NSMethodSignature *signature;
NSInvocation *invocation;
signature = [target methodSignatureForSelector:selector];
if(!signature)
if (!signature)
{
[NSException raise:STInternalInconsistencyException
format:@"No method signature for selector '%@' for "
@"receiver of type %@",
NSStringFromSelector(selector),[target className]];
NSStringFromSelector(selector), [target className]];
return nil;
}
invocation = [NSInvocation invocationWithMethodSignature:signature];
[invocation setSelector:selector];
@ -282,59 +288,63 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
return invocation;
}
- (void)setArgumentAsObject:(id)anObject atIndex:(int)anIndex
- (void)setArgumentAsObject:(id)anObject atIndex:(NSInteger)anIndex
{
const char *type;
NSUInteger size;
void *value;
type = [[self methodSignature] getArgumentTypeAtIndex:anIndex];
value = NSZoneMalloc(STMallocZone,objc_sizeof_type(type));
NSGetSizeAndAlignment(type, &size, NULL);
value = NSZoneMalloc(STMallocZone, size);
STGetValueOfTypeFromObject(value, type, anObject);
[self setArgument:(void *)value atIndex:anIndex];
NSZoneFree(STMallocZone,value);
NSZoneFree(STMallocZone, value);
}
- (id)getArgumentAsObjectAtIndex:(int)anIndex
- (id)getArgumentAsObjectAtIndex:(NSInteger)anIndex
{
const char *type;
NSUInteger size;
void *value;
id object;
type = [[self methodSignature] getArgumentTypeAtIndex:anIndex];
value = NSZoneMalloc(STMallocZone,objc_sizeof_type(type));
type = [[self methodSignature] getArgumentTypeAtIndex:anIndex];
NSGetSizeAndAlignment(type, &size, NULL);
value = NSZoneMalloc(STMallocZone, size);
[self getArgument:value atIndex:anIndex];
object = STObjectFromValueOfType(value,type);
NSZoneFree(STMallocZone,value);
object = STObjectFromValueOfType(value, type);
NSZoneFree(STMallocZone, value);
return object;
}
- (id)returnValueAsObject
{
const char *type;
int returnLength;
NSUInteger returnLength;
void *value;
id returnObject = nil;
NSMethodSignature *signature = [self methodSignature];
type = [signature methodReturnType];
returnLength = [signature methodReturnLength];
NSDebugLLog(@"STSending",
@" return type '%s', buffer length %i",type,returnLength);
@" return type '%s', buffer length %lu",
type, (unsigned long)returnLength);
if(returnLength!=0)
if (returnLength != 0)
{
value = NSZoneMalloc(STMallocZone,returnLength);
value = NSZoneMalloc(STMallocZone, returnLength);
[self getReturnValue:value];
if( *type == _C_VOID )
if (*type == _C_VOID)
{
returnObject = [self target];
}
@ -343,9 +353,9 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
returnObject = STObjectFromValueOfType(value, type);
}
NSZoneFree(STMallocZone,value);
NSZoneFree(STMallocZone, value);
NSDebugLLog(@"STSending",
@" returned object %@",returnObject);
@" returned object %@", returnObject);
}
else
{

View file

@ -32,7 +32,7 @@
- subtract:(NSNumber *)number;
- multiply:(NSNumber *)number;
- divide:(NSNumber *)number;
- (unsigned int)isLessThan:(NSNumber *)number;
- (BOOL)isLessThan:(NSNumber *)number;
- (BOOL)isGreatherThan:(NSNumber *)number;
- (BOOL)isLessOrEqualThan:(NSNumber *)number;
- (BOOL)isGreatherOrEqualThan:(NSNumber *)number;
@ -40,13 +40,13 @@
@interface NSNumber (STLogicOperations)
- (unsigned int)or:(NSNumber *)number;
- (unsigned int)and:(NSNumber *)number;
- (unsigned int)not;
- (NSUInteger)or:(NSNumber *)number;
- (NSUInteger)and:(NSNumber *)number;
- (NSUInteger)not;
@end
@interface NSNumber (STStructure)
- rangeWith:(int)length;
- rangeWith:(NSUInteger)length;
- pointWith:(float)y;
- sizeWith:(float)h;
@end

View file

@ -77,7 +77,7 @@
return [NSNumber numberWithDouble:(fmod([self doubleValue],
[number doubleValue]))];
}
- (unsigned int)isLessThan:(NSNumber *)number
- (BOOL)isLessThan:(NSNumber *)number
{
return ([self doubleValue] < [number doubleValue]);
}
@ -99,28 +99,29 @@
@implementation NSNumber (STLogicOperations)
- (unsigned int)or:(NSNumber *)number
- (NSUInteger)or:(NSNumber *)number
{
return ([self intValue] | [number intValue]);
return ([self integerValue] | [number integerValue]);
}
- (unsigned int)and:(NSNumber *)number
- (NSUInteger)and:(NSNumber *)number
{
return ([self intValue] & [number intValue]);
return ([self integerValue] & [number integerValue]);
}
- (unsigned int)not
- (NSUInteger)not
{
/* FIXME */
return ![self intValue];
return ![self integerValue];
}
@end
@implementation NSNumber (STStructure)
- rangeWith:(int)length
- rangeWith:(NSUInteger)length
{
return [STStructure structureWithRange:NSMakeRange([self intValue], length)];
NSRange r = NSMakeRange([self unsignedIntegerValue], length);
return [STStructure structureWithRange:r];
}
- pointWith:(float)y
{

View file

@ -26,6 +26,9 @@
@interface NSObject (STAdditions)
- (BOOL)isSame:(id)anObject;
- (BOOL)notEqual:(id)anObject;
- (BOOL)notSame:(id)anObject;
- (BOOL)isNil;
- (BOOL)notNil;
- (id)yourself;
@end

View file

@ -15,6 +15,14 @@
{
return self == anObject;
}
- (BOOL)notEqual:(id)anObject
{
return ![self isEqual:anObject];
}
- (BOOL)notSame:(id)anObject
{
return ![self isSame:anObject];
}
- (BOOL)isNil
{
return NO;
@ -23,5 +31,9 @@
{
return YES;
}
- (id)yourself
{
return self;
}
@end

View file

@ -0,0 +1,47 @@
/**
STActor
StepTalk actor
Copyright (c) 2002 Free Software Foundation
Written by: Stefan Urbanek <urbanek@host.sk>
Date: 2005 June 30
License: LGPL
This file is part of the StepTalk project.
*/
#import <Foundation/NSObject.h>
#import "STMethod.h"
@class NSMutableDictionary;
@class NSDictionary;
@class NSArray;
@class STEnvironment;
@interface STActor:NSObject<NSCoding>
{
NSMutableDictionary *ivars;
NSMutableDictionary *methodDictionary;
STEnvironment *environment;
}
+ actorInEnvironment:(STEnvironment *)env;
- initWithEnvironment:(STEnvironment *)env;
- (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;
- (void)removeMethodWithName:(NSString *)aName;
- (NSArray *)methodNames;
- (NSDictionary *)methodDictionary;
@end

Some files were not shown because too many files have changed in this diff Show more