Load as Morph!
Gary McGovern
gary.play at btopenworld.com
Tue Feb 5 06:57:56 UTC 2002
Here's the answer for any newbie student. I hope the knowbies don't mind my questions
because I do believe multimedia questions were meant to be part of the list (according to
an email from Dan Ingalls last autumn.
Thanks!
Gary
05/02/02 04:29:01, Gary McGovern <gary.play at btopenworld.com> wrote:
>Hello Bob,
>I've found the method, I believe, in class FileList - method - openMorphFromFile. I
think
>I can understand that method ok.
>Gary
>
>05/02/02 03:52:14, Gary McGovern <gary.play at btopenworld.com> wrote:
>
>>Thanks Bob,
>>But that doesn't work. I was looking at SmatrRefStream but coouldn't suss it.
>>Any other ideas ? It must be somewhere.
>>Gary
>>
>>05/02/02 02:27:42, Bob Arning <arning at charm.net> wrote:
>>
>>>On Tue, 05 Feb 2002 01:24:15 -0000 Gary McGovern
>><gary.play at btopenworld.com> wrote:
>>>>I'm looking to find how to write a method to load an existing morph. I was
expecting
>>the
>>>>menu selector to be a universal command, but not so.
>>>>
>>>>Can someon give some example code to load a morph. (such as an ellipse with
>added
>>>>textxmorph 'hello') ?
>>>
>>>Gary,
>>>
>>>Try
>>>
>>> Morph fromFileName: 'yourfile.morph'
>>>
>>>which is what would be called if you pointed a FileList at a file with a suffix of
.morph
>>and chose 'load as morph' from the menu. This all assumes that what you are trying to
>>load was written using one of the 'save morph in file' menu items or equivalent.
>>>
>>>Cheers,
>>>Bob
>>>
>>
>>
>
>
More information about the Squeak-dev
mailing list
|