[F-Script-talk] Methods in F-Script.
Brought to you by:
pmougin
From: Massimiliano G. <mg...@ma...> - 2005-07-13 11:37:14
|
Hi, recently I wrote some code which allows to override an arbitrary objc methods by sending the corresponding NSInvocation to a delegate for handling. My purpose is to use this technique to extend objc classes from an external language (Io, in my case). However I think that such a mechanism can be also useful in F-Script to replace native methods with scripts (and ultimately to be able to define ObjC classes in F- Script). You can find the code for the MXMethodOverride class which implements the technique (within an example application) at http://www.ing.unipi.it/~d9615/homepage/mac.html It is a beta version but works as expected. Comments are welcome. best, Massimiliano Gubinelli |