[vwnc] Hooking a model object to a GUI display

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

[vwnc] Hooking a model object to a GUI display

David Finlayson-4
I was wondering if there are a few simple examples using the various
dependency mechanism in VW? I have some documentation and examples on
the Update/Changed mechanism (I played around with this in Squeak and
it worked, haven't yet tried on VW). But I didn't follow the manual
chapters on Triggers or Announcements and when to prefer one mechanism
over the others.

Thanks,

David
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Hooking a model object to a GUI display

David Finlayson-4
I should add that my first program that needs this is a simple GUI
input field that I want to change whenever the state of Object B
changes. I don't want to hard-code a reference to the GUI into Object
B though. This is what dependency mechanisms are for if I'm not
mistaken.

On Thu, Apr 2, 2009 at 5:04 PM, David Finlayson <[hidden email]> wrote:

> I was wondering if there are a few simple examples using the various
> dependency mechanism in VW? I have some documentation and examples on
> the Update/Changed mechanism (I played around with this in Squeak and
> it worked, haven't yet tried on VW). But I didn't follow the manual
> chapters on Triggers or Announcements and when to prefer one mechanism
> over the others.
>
> Thanks,
>
> David
>



--
David Finlayson, Ph.D.
Operational Geologist

U.S. Geological Survey
Pacific Science Center
400 Natural Bridges Drive
Santa Cruz, CA  95060, USA

Office: 831-427-4757
Lab: 831-427-4462
Fax: 831-427-4748
E-mail: [hidden email]
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Hooking a model object to a GUI display

Cesar Rabak
Have you give a look to the examples from the "Examples Catalogue" in
the Help?

Specially look the code for the examples Adaptor1Example through
Adaptor6Example and DependencyExample.


David Finlayson escreveu:

> I should add that my first program that needs this is a simple GUI
> input field that I want to change whenever the state of Object B
> changes. I don't want to hard-code a reference to the GUI into Object
> B though. This is what dependency mechanisms are for if I'm not
> mistaken.
>
> On Thu, Apr 2, 2009 at 5:04 PM, David Finlayson <[hidden email]> wrote:
>> I was wondering if there are a few simple examples using the various
>> dependency mechanism in VW? I have some documentation and examples on
>> the Update/Changed mechanism (I played around with this in Squeak and
>> it worked, haven't yet tried on VW). But I didn't follow the manual
>> chapters on Triggers or Announcements and when to prefer one mechanism
>> over the others.
>>
>> Thanks,
>>
>> David
>>
>
>
>


--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Hooking a model object to a GUI display

James Robertson-7
In reply to this post by David Finlayson-4
go here:

http://www.cincomsmalltalk.com/userblogs/cincom/blogView?content=smalltalk_daily_vw_ui


James Robertson
Cincom Smalltalk Product Evangelist
http://www.cincomsmalltalk.com/blog/blogView
Talk Small and Carry a Big Class Library




On Apr 2, 2009, at 8:04 PM, David Finlayson wrote:

> I was wondering if there are a few simple examples using the various
> dependency mechanism in VW? I have some documentation and examples on
> the Update/Changed mechanism (I played around with this in Squeak and
> it worked, haven't yet tried on VW). But I didn't follow the manual
> chapters on Triggers or Announcements and when to prefer one mechanism
> over the others.
>
> Thanks,
>
> David
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Hooking a model object to a GUI display

David Finlayson-4
Thanks. That helped but didn't quite fix my problem. I remembered I
have an old copy of Simon Lewis's The Art and Science of Smalltalk and
sure enough, he had a chapter on the AspectAdaptors.

It turns out I wasn't sending the "self changed" method correctly on
my domain object. I needed to send "self changed: #nameOfMethod". And
then the update started working. That little detail was tough to
ferret out.

David


On Thu, Apr 2, 2009 at 6:30 PM, James Robertson <[hidden email]> wrote:

> go here:
>
> http://www.cincomsmalltalk.com/userblogs/cincom/blogView?content=smalltalk_daily_vw_ui
>
>
> James Robertson
> Cincom Smalltalk Product Evangelist
> http://www.cincomsmalltalk.com/blog/blogView
> Talk Small and Carry a Big Class Library
>
>
>
>
> On Apr 2, 2009, at 8:04 PM, David Finlayson wrote:
>
>> I was wondering if there are a few simple examples using the various
>> dependency mechanism in VW? I have some documentation and examples on
>> the Update/Changed mechanism (I played around with this in Squeak and
>> it worked, haven't yet tried on VW). But I didn't follow the manual
>> chapters on Triggers or Announcements and when to prefer one mechanism
>> over the others.
>>
>> Thanks,
>>
>> David
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>



--
David Finlayson, Ph.D.
Operational Geologist

U.S. Geological Survey
Pacific Science Center
400 Natural Bridges Drive
Santa Cruz, CA  95060, USA

Office: 831-427-4757
Lab: 831-427-4462
Fax: 831-427-4748
E-mail: [hidden email]
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Hooking a model object to a GUI display

Henrik Sperre Johansen
In reply to this post by David Finlayson-4
For the Announcement, I don't know if there's any examples per se.
The easiest way to see how they're used is probably to inspect the
references to different Announcement subclasses.
IIRC, tooltip state machine is the the only thing using them in vanilla
7.6, LessProgress is another commonly loaded package using them.

Cheers,
Henry

David Finlayson wrote:

> I was wondering if there are a few simple examples using the various
> dependency mechanism in VW? I have some documentation and examples on
> the Update/Changed mechanism (I played around with this in Squeak and
> it worked, haven't yet tried on VW). But I didn't follow the manual
> chapters on Triggers or Announcements and when to prefer one mechanism
> over the others.
>
> Thanks,
>
> David
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>  
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc