Re: [F-Script-talk] incomplete FSClass instance implementation
Brought to you by:
pmougin
From: Ken F. <ken...@gm...> - 2007-12-22 17:27:32
|
Hey Kimon, Looking at the FSClass source, it might be a problem running on Leopard. The +[FSClass newClass:] method returns a proxy object that can handle an addProperty: message. The -class method on that proxy is implemented to return the un-proxied class. Something about Leopard may be causing that -class method to be invoked where it wasn't before, because I can make things work a bit better by removing the implementation of -class on FSClass. This works with the class method removed: > Circ := FSClass newClass:'Circle' > Circ addProperty:'radius' > c := Circ alloc init > c setRadius:5 nil > c radius 5 Dealing directly with the [Circle class] object still doesn't work for me. From the source, I'm not sure it's expected to.. -Ken On Dec 21, 2007 3:11 PM, Kimon Tsinteris <ki...@ma...> wrote: > Hi, > > I seem to be having some issues using FScript & FSClass. I'm currently > at version 1.3.5 & 2.1 respectively running under 10.5.1. When I > executed the following example code: > > > Circle := FSClass newClass:'Circle'. > > Circle addProperty:'radius'. > > I receive: > > error: an instance of Circle does not respond to "addProperty:" > > Indeed when browsing my Circle FSClass under the object browser, the > FSClass instance selectors do not appear to be present. Does FSClass > require FScript 2.0 or is there something else I might be missing? > > Thanks, > Kimon > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |