Bug?? createSchematicWiring not called on shell view

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

Bug?? createSchematicWiring not called on shell view

Frank Sonnemans-3
I have a shell view which uses createSchematicWiring to hookup some
radio buttons. This worked for a while, but all of a sudden the
createSchematicWiring is no longer called during the construction of the
view.

Code below:
ActTargetQueryShell subclass: #ActTargetReportSectionShell
        instanceVariableNames: 'commentPresenter radioButtonPresenter'
        classVariableNames: ''
        poolDictionaries: ''
        classInstanceVariableNames: ''

createSchematicWiring
        self halt.
        super createSchematicWiring.

        radioButtonPresenter when: #radioButtonSelection: send:
#radioButtonSelected: to: self.

Running this code never gets to the halt message.

Any ideas why???

Thanks in advance.


Frank


Reply | Threaded
Open this post in threaded view
|

Re: Bug?? createSchematicWiring not called on shell view

Bill Schwab-2
Frank,

> createSchematicWiring
> self halt.
> super createSchematicWiring.
>
> radioButtonPresenter when: #radioButtonSelection: send:
> #radioButtonSelected: to: self.
>
> Running this code never gets to the halt message.
>
> Any ideas why???

This kind of thing is usually caused by one of two things: a typo in a
selector, or a failure to super send somewhere.

One caution: don't super send from a _class_ side #initialize - generally
you should super send in an instance-side #initialize, and from #model:,
#createComponents, #onViewOpened, etc.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Bug?? createSchematicWiring not called on shell view

Louis Sumberg-2
In reply to this post by Frank Sonnemans-3
Frank,

Based on the code you posted, it works in my image. (FYI & FWIW).

You could try debugging ActTargetReportSectionShell show in a workspace and
step through the debugger, perhaps something else in the class or superclass
is, um, interceding.

-- Louis


Reply | Threaded
Open this post in threaded view
|

Re: Bug?? createSchematicWiring not called on shell view

Ian Bartholomew-6
In reply to this post by Frank Sonnemans-3
Frank,

> Running this code never gets to the halt message.
>
> Any ideas why???

If you've overridden #onViewOpened make sure it does a supersend. It's a
common method to override and the superclass implementation sends
#createSchematicWiring.to your class.

Regards
    Ian


Reply | Threaded
Open this post in threaded view
|

Re: Bug?? createSchematicWiring not called on shell view

Frank Sonnemans-3
You were right. I setup some radio buttons in onViewOpened and forgot
the super send.

Thanks all.


Ian Bartholomew wrote:

> Frank,
>
>
>>Running this code never gets to the halt message.
>>
>>Any ideas why???
>>
>
> If you've overridden #onViewOpened make sure it does a supersend. It's a
> common method to override and the superclass implementation sends
> #createSchematicWiring.to your class.
>
> Regards
>     Ian
>
>
>