[self-interest] Filing Out A Composite Morph?
Josh Flowers
joshflowers at mac.com
Sat Dec 18 09:05:00 UTC 2010
Unfortunately that didn't work either.
A Morph saved using saveMorphInFile can only reference a limited
set of other object types (strings, methods, morphs, collections of
morphs, and 'concrete' objects) - mine references a ircServer object.
Clearly there are a couple different ways I can refactor the code, just
need to spend some time thinking about which one I like....
> That looks promising - I'll try it out this weekend.
>
> Thanks Jan,
>
> Josh
>
> On Dec 9, 2010, at 2:08 AM, Jan-Paul Bultmann wrote:
>
>>
>>
>> There is a passage about this in the manual. http://docs.selflanguage.org/morphic.html
>> 6.4. Saving a Composite Morph
>> The System for filling out morphs seems pretty raw around the edges and really needs to be improved if we want to create usefull apps.
>>
>> Hope this helps,
>> cheers Jan
>> On Dec 9, 2010, at 5:12 AM, Josh Flowers wrote:
>>
>>> Does Self support filing out composited morphs? I composited a number of morphs to create an irc chat UI, but I'm having troubles writing it out.
>>>
>>> I turned an instance of the morph into a prototype; added it to a module; setup the copy-down slots to Copydown parent: 'rowMorph', Copydown selector: 'copyRemoveAllMorphs'... and I think that's about it.
>>>
>>> The module files out and in without errors, but when I try and create an instance of the prototype I get an error message about 'rawMorphs' being missing. I can fix this by manually setting the irc morph's copy-down attributes (they don't seem to copy over as part of the file-in/out process) but then the original submorphs don't exist.
>>>
>>> Besides having trouble describing the problem - am I doing something wrong?
>>>
>>
>>
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20101218/7f1f8846/attachment.html>
More information about the Self-interest
mailing list