Sending messages between objects and the observer pattern?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Sending messages between objects and the observer pattern?

  1. #1
    Join Date
    Dec 2010
    Posts
    587

    Sending messages between objects and the observer pattern?

    Are they somehow related to each other?
    Thanks
    Jack

  2. #2
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,012

    Re: Sending messages between objects and the observer pattern?

    Everything is related to everything else in some way.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

  3. #3
    Join Date
    Dec 2010
    Posts
    587

    Re: Sending messages between objects and the observer pattern?

    Is the observer pattern a "wrapper" or say I don't know different ways of presenting the messaging system?
    Thanks
    Jack

  4. #4
    Join Date
    May 2009
    Posts
    2,413

    Re: Sending messages between objects and the observer pattern?

    Quote Originally Posted by lucky6969b View Post
    Is the observer pattern a "wrapper" or say I don't know different ways of presenting the messaging system?
    I don't quite understand what you're asking but in my view the design pattern that's closest to a message system is Mediator. It's a complexity reducing pattern and the idea is to broadcast messages among anonymous objects rather than letting them communicate directly knowing about each other.

    Regarding Observer I'd say the notification part can be though of as messaging. And in the GoF book a variation of Observer is described which uses a Mediator for more complex notification needs.
    Last edited by nuzzle; March 12th, 2013 at 03:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center