Information générale
Catégorie:
Programmation Orientée Object
Hi
Have you got any examples/notes on this method? I've never tried it before.
Thanks
Kev
>I believe that it is "Best Practice" to invoke a mediator for this purpose. The parent object should communicate with both objects. In this case the object which triggers the event should notify the Parent object and then the parent object should take any necessary actions with it's children objects.
>
>Glenn
>
>>Hi
>>
>>What's the best way to do the following? I have an object that needs to call methods in another object.
>>
>>Is it best to create the object you want to talk to, in a property on the object?
>>
>>Or are there other/better ways?
>>
>>Thanks
>>Kev
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement