Yes. Thanks, David, for the information on the -C option or naming the
class SmalltalkTool. And thanks, Truls, that tutorial is indeed why I was
confused.

And, as far as I can tell, the edlc manpage is not installed.

HelloWorld.st "runs" now, but with some nasty errors and possibly a core
dump (can't remember right now). I'm swamped with school projects for a
few days, but I'll post the details as soon as I have a moment.

James

On Wed, May 2, 2012 2:15 am, Truls Becken wrote:
> David, the reason James missed the bit about the entry point is that the
> tutorial fails to mention it. Look at the bottom of the page he refers to.
>
> -Truls
>
> On 2012-05-01, at 10:19, David Chisnall wrote:
>
>> Hi James,
>>
>> If you define a class as your main entry point with a name other than
>> SmalltalkTool (which is a silly name - I should change it to something
>> more sensible, like Application), then you need to add -C to the edlc
>> command line to specify the class, like this:
>>
>> $ edlc -l EtoileUI -f HelloWorld.st -C HelloWorld
>>
>> This is documented in the edlc man page, but I'm not sure if that gets
>> correctly installed...
>>
>> The EtoileUI documentation appears to be buggy - hopefully Quentin will
>> fix it.
>>
>> David
>>
>> On 30 Apr 2012, at 22:46, James Mahoney wrote:
>>
>>> Here's the code. As far as I know, I didn't define a class called
>>> SmalltalkTool. I just typed in the example given at the bottom of the
>>> "EtoileUI Quick Start Guide." http://etoileos.com/dev/guides/etoileui/
>>>
>>> NSObject subclass: HelloWorld [
>>> run [
>>>   ETApplication sharedApplication setDelegate: self.
>>>   ETApplication sharedApplication run.
>>> ]
>>>
>>> applicationDidFinishLaunching: notif [ | itemFactory helloItem |
>>>   itemFactory := ETLayoutItemFactory factory.
>>>   helloItem := itemFactory itemWithValue: 'Hello World!'.
>>>   itemFactory windowGroup addItem: helloItem.
>>> ]
>>> ]
>>>
>>> I'm a beginner with this, in case you hadn't noticed, so I don't want
>>> to
>>> bog down the mailing list with beginner programming questions. I was
>>> simply puzzled why the above example didn't work. Ergo, what
>>> documentation
>>> should I look at for defining the SmalltalkTool class and implementing
>>> the
>>> run method therein?
>>>
>>> Thanks for your patience.
>>>
>>> James
>>>
>>>
>>> On Mon, April 30, 2012 10:06 am, David Chisnall wrote:
>>>> Can you show me the contents of your HelloWorld.st?  This should work
>>>> if
>>> you have defined a class called SmalltalkTool that implements a run
>>> method.  If you have not, then the error message is as expected...
>>> David
>>>> On 26 Apr 2012, at 02:29, James Mahoney wrote:
>>>>> Hi all,
>>>>> Following David's instructions on the web site, I successfully got
>>> GNUstep and Etoile compiled on a FreeBSD amd64 VM, using the clang-3.0
>>> found in the packages-9-stable ftp directory to compile Etoile. I typed
>>> in and tried to run the Smalltalk HelloWorld.st example found
>>> at
>>>>> the bottom of http://etoileos.com/dev/guides/etoileui/ , but I got
>>>>> this
>>> error:
>>>>> $ edlc -l EtoileUI -f HelloWorld.st
>>>>> SmalltalkTool instances must respond to run message
>>>>> $
>>>>> Am I doing something wrong? Did something change since the tutorial
>>>>> was
>>> written making it necessary to add something else to the example?
>>> Etoile is r7670 checked out on April 20. GNUstep is r35090 checked out
>>> on April 19.
>>>>> Thanks,
>>>>> James
>>>>> [email protected]
>>>>> SDF Public Access UNIX System - http://sdf.org
>>>>> _______________________________________________
>>>>> Etoile-discuss mailing list
>>>>> [email protected]
>>>>> https://mail.gna.org/listinfo/etoile-discuss
>>>> -- Sent from my Cray X1
>>>> _______________________________________________
>>>> Etoile-discuss mailing list
>>>> [email protected]
>>>> https://mail.gna.org/listinfo/etoile-discuss
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Etoile-discuss mailing list
>>> [email protected]
>>> https://mail.gna.org/listinfo/etoile-discuss
>>
>>
>> -- Sent from my STANTEC-ZEBRA
>>
>>
>> _______________________________________________
>> Etoile-discuss mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/etoile-discuss
>
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
>



_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à