Problems with Widgetry

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with Widgetry

Maximillian Davids
Hello again.

First of all I want to thank you for your responses to my last message.
I'm following your suggestions and Nowak's advice, so I'm making my way into Widgetry now. Today I created a class that inherits from Widgetry.Form, redifining the "hookupWindow:" method which now has the following code:

             super hookupWindow: window.

              // more code //

              window when: Opened send: #opened: to: self with: 'test'.

Unfortunately there's a problem here. When it executes there is a "message not understood" error. It appears that window >> when:send:to:withArguments: method is trying to get the number of arguments from an event instead of a symbol.

This is the line of code that has this problem:

Window >> when:send:to:withArguments:
        arguments := Array new: (MessageSend numberOfArgumentsFor: anEventNameSymbol).

But, if you change "anEventNameSymbol" to "aSelectorSymbol" it works. Ok, it dies a moment later, but in this case is a different error.

Could it be some kind of bug?

There's another thing: Every time I download the "Twitter" parcel from the Repository I get two messages of "unable to load prerequisite:" (or something like that). Those prerequisites are: "SupportALTnnnnAsCharacterInput" and "ImageReaders".

There is a problem in Twitter.TwitterUpdater>>updatePublic too, it tryes to send a "sortWith" to an OrderedCollection, so we have a "message not understood" error again.

That's all. I hope these problems are not my fault :)

As before: Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with Widgetry

Samuel S. Shuster <sames@interaccess.com>
Max,

>Unfortunately there's a problem here. When it executes there is a "message
>not understood" error. It appears that window >> when:send:to:withArguments:
>method is trying to get the number of arguments from an event instead of a
>symbol.

Yes. The problem is that Announcements do not support #when:send:to:with*
methods.

Announcements only support when:send:to: and when:do:. #when:send:to:with*
methods are only for TriggerEvents, which is not supported in Widgetry.

The Twitter work is not mine, so I can not comment on that.

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Smalltalk Enables Success -- What Are YOU Using?