Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Mediator Class
Message
From
08/06/1998 05:11:15
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
07/06/1998 08:43:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00105603
Message ID:
00105717
Views:
24
>Heya All,
>
......Snip
>and then something like..
>
> loMediator = (.mcMediatorRef ) && or maybe EVAL()
> loMediator.RegisterMe(THIS.Class, THIS)
>
>But I wan't sure if this was the "proper" way
>
>Thanks,
Hi,
I think you could do this in two ways:
1) Have your mediator object connected to your application object (if you have one).
e.g.
goApplication.Mediator.RegisterMe(THIS.Class, THIS)
2) Have a Global mediator object that you create on application start-up, then just check for it's existance in the init of any object that might need to register itself.
e.g.
*-- Object Init code
IF TYPE( 'goMediator') = 'O' AND NOT ISNULL( loMediator)
goMediator.RegisterMe(THIS.Class, THIS)
ENDIF
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform