Click here to Skip to main content
15,881,588 members
Articles / Programming Languages / Objective C

An Easy to Use Observer Pattern Implementation (No Inheritance Required)

Rate me:
Please Sign up or sign in to vote.
4.95/5 (21 votes)
26 Jan 20047 min read 88.6K   1.3K   41  
Observer Pattern implemented in a nice template model, easy to use as it does not require the classical inheritance and can easily decouple Subject and Observer
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include <iostream>
#include <tchar.h>

#include "Observer.h"

using namespace Blue;

// TODO: reference additional headers your program requires here

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Technical Lead OneSaas - Cloud Integrations Made Easy
Australia Australia

Comments and Discussions