hegemonie-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Hegemonie-devel] [Fwd: Using frameworks for scriptign with StepTalk]


From: Damien Genet
Subject: [Hegemonie-devel] [Fwd: Using frameworks for scriptign with StepTalk]
Date: 13 May 2003 22:07:09 +0200

-- 
Dam
--- Begin Message --- Subject: Using frameworks for scriptign with StepTalk Date: Tue, 13 May 2003 11:54:40 +0200
Hi,

I have implemented few methods in StepTalk that will make framework scripting 
easier.

In scripts you do:
   Envrionment includeFramework:'FrameworkName'
and StepTalk will import public classes and objects of that framework, so you 
can use them in scripts. This is useful, for example for using framework 
features without applications or for testing frameworks.

Framework should provide ScriptingInfo.plist with content like this:
   {
       Classes = ( /* array of public classes */ );
   }
Optionaly you can include a key ScriptingInfoClass specifying name of class 
that will provide framework constants (named objects). All you have to do is to 
implement some (any) class with following method:
   - (NSDictionary *)namedObjectsForScripting
   {
       NSDictionary *dict;
       dict = ... /* some dictionary with objects and their names */;
       return dict;
   }

This ScriptingInfoClass is optional, using framework classes is usually 
sufficient.

I have created development snapshot at usual place: 
http://steptalk.host.sk/Download Code is available on CVS.

Moreover, there are some important fixes in smalltalk source reader.

Enjoy,

Stefan Urbanek
--
http://urbanek.host.sk

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi




_______________________________________________
Discuss-gnustep mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/discuss-gnustep


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]