# 112 - Learning the Observer Pattern w/ Callbacks

Level: Intermediate
Tags: Design Patterns
Comments: (41)
Derik Whittaker
Presented By:

In this episode we will take at how we can use the Observer Pattern in our application.

This is a follow up episode to Episode 108 where we take another look at this pattern and how we can implement it using either call backs or events. The Observer pattern allows you to define a one-to-many relationship inside your application where the parent object (the one) has the ability to notify the child objects (the many) of any state change. You can utilize this pattern to make sure that a set of objects are keep in order when there behavior needs to change based on the state of your application.
Click here to Watch this Episode

Download (19.62 MB) (12:23) (1440x900)
Download (13.63 MB) (12:23) (960x600)


Comments: (41)

spfwqs said....

10/28/2011 7:22:46 AM

Cheap nike air max outlet said....


4/16/2012 6:28:35 PM

mac cosmetics online said....


mac cosmetics online
Oakley Dispatch Sunglass
Oakley Impatient Sunglasses
buy mac cosmetics
Oakley Radar Sunglasses
Oakley Fuel Cell Sunglass
Oakley Jupiter Sunglasses
MAC Foundation

4/19/2012 8:45:30 PM

mac cosmetics online said....


mac cosmetics online
Oakley Dispatch Sunglass
Oakley Impatient Sunglasses
buy mac cosmetics
Oakley Radar Sunglasses
Oakley Fuel Cell Sunglass
Oakley Jupiter Sunglasses

4/19/2012 8:46:31 PM

nike air max said....


4/19/2012 10:40:50 PM

nike air max said....


4/19/2012 10:42:22 PM

nike air max said....


4/19/2012 10:43:11 PM

Oakley Abandon Sunglasses said....


Oakley Abandon Sunglasses
Oakley Active Sunglasses
Oakley Antix Sunglasses
Oakley Batwolf Sunglasses
Oakley C Six Sunglasses
Oakley Commit SQ Sunglasses

4/20/2012 1:40:43 AM

sara said....

jordan shoes

4/20/2012 5:53:04 PM

Nike Free 3.0 said....

When they do come with the shoe box, pretend Nike shoe box manufactured of low-priced cardboard quickly falls aside http://www.nikefreeruncheap2012.com. Authentic Nike shoe containers are actually pretty durable. But way too negative, you may only notice this just after you obtain the shoes http://www.nikefreeruncheap2012.com. And as generally when the cost seems way too excellent to be real, it in all probability is http://www.nikefreeruncheap2012.com.

4/22/2012 8:59:11 PM

Lebron 9 said....

The Foamposite Lebron James Air Max VII Shoes is added than just a mash-up of two accepted Nike Sportswear models. Nike Lebron Shoes came in a reasonable time and I absolutely enjoy them. I wear them whenever I hip-hop dance and they perform admirably. Whether you're a Mexican citizen or not, this Lebron Shoes is a good way of showing your Nike Lebron Shoes for Sale commitment to style and beauty in the body of a single pair of Lebron 9 for Sale which draws attention to itself like a powerful magnet pulling iron. Producing from the reality the 8th LeBron shoes, the sum "8" have to be impressed near to the shoes, the meticulous styles totally Lebron James Shoes for Sale include a wonderful offer things in the direction of the oxygen Max LeBron 8. Wednesday afternoon's advertise of the Lebron 9 shoes featured the old and the new, the adopted and the blue; Jordan Brand's focal point of its advertise was Michael Jordan's "love of the game", an affect induced by the blush Carolina Blue.

4/24/2012 9:48:12 PM

asd said....

<a href="http://www.discountnorthfaceoutlets.com/">Discount North Face Jackets</a> are easier to be accepted by the low-income people who often search for the <a href="http://www.discountnorthfaceoutlets.com/">Cheap North Face</a> jackets in the <a href="http://www.cheapmoncleroutlets.com/">Moncler Outlet</a>.

4/25/2012 6:10:13 PM

asdf said....

[url=http://www.discountnorthfaceoutlets.com/]Discount North Face Jackets[/url] are easier to be accepted by the low-income people who often search for the [url=http://www.discountnorthfaceoutlets.com/]Cheap North Face[/url] jackets in the [url=http://www.cheapmoncleroutlets.com/]Moncler Outlet[/url].

4/25/2012 6:10:38 PM

asdf said....


4/25/2012 6:11:34 PM

lebron 9 said....

Lunar Lite - All nike lunar Trainers contain LunarLite foam. This nike air yeezy foam is usually observed at the bottom of your air yeezys shoes and it nike lunar 3  is actually 30% lighter than regular Phylon. This means the shoe is going to be mild nike lunarglide 3 , really light and it will also possess a pleasant cushioning to it which makes it springy. Typically in Christian Louboutin Outlet Nike sneakers that use this foam, the LunarLite Christian Louboutin Discount is usually encased in a Phylon or Phylite air yeezy 2    midsole.


4/25/2012 6:20:50 PM

Foamposite galaxy said....

I happened to come across with your blog template which is so beautiful. I would like to know whether I need to spend some money so that I can get  a template like yours. I hope to get your reply as soon as possible.
<a href="http://www.2012jordans.org">Jordan 12</a>
<a href="http://www.2012jordans.org">Jordan 12 Playoffs</a>
<a href="http://www.2012nikefreerun.org">Nike Free 3.0</a>
<a href="http://www.2012nikefreerun.org">Nike Running Shoes</a>
<a href="http://www.foampositecheap.org">cheap foamposites</a>
<a href="http://www.foampositecheap.org">Foamposites 2012</a>
<a href="http://www.nikelebron9buy.com">Nike Lebron 9</a>
<a href="http://www.nikelebron9buy.com">Foamposites for Sale</a>
<a href="http://www.zoomhyperfuse.com">Nike Zoom Hyperfuse</a>
<a href="http://www.zoomhyperfuse.com">Hyperfuse 2012</a>
<a href="http://www.nikeairfoamposite2012.com ">Foamposite Galaxy</a>
<a href="http://www.nikeairfoamposite2012.com ">Foamposites for Sale</a>
<a href="http://www.nikeairmax90sale.org">Nike Air Max 90</a>
<a href="http://www.kanyewestshoes.org">Air Yeezy 2</a>
<a href="http://www.kanyewestshoes.org">Kanye West Shoes</a>
<a href="http://www.coachfactorynow.com">coach factory store</a>
<a href="http://www.coachfactorynow.com">coach handbags</a>

4/25/2012 6:44:23 PM

Coach Outlet Canada said....

Coach Outlet is an organic combination of the high quality materials and modern fashionable elements. Coach Purses Outlet are always taking fantastic design to satisfy the buyers. When you carry the Cheap Coach Handbags, you will look gorgeous and elegant. The Coach Outlet Store Online logos are quite clear and tasty. Customers are welcome to buy Shoulder Bag from Coach Factory. Action, now! Louis Vuitton Purses will never be a dream to own a Coach Bag. Coach Outlet Online offer you a chance to reach out to theCoach Outlet. Price there is resonable with high quality Guaranteed. Coach Outlet Online is absolutely above the price in value. You could improve your temperament and tastes with our bags on Coach Outlet Online. The bag is designed for party and work. You will be the center of people with Coach Outlet Online. As it is a well-sold product around the world, if you are interested in Coach Handbags Outlet please take action without hesitation. I always believe something in this world was born to be an eternal classic such as Cheap Coach Purses. Coach Bags has the charming natural leathera and the cozy textile. These Coach Factory Outlet generally offer a chain of "C"-type pattern adornment, you will be attracted by the elegance of such louis vuitton handbags. Coach Shoulder Bags on Sale will give you the liberty to appreciate life and make Coach Factory Outlet Online the world a better place for all those around you. All our products are anthentic and genuine. Good materials and service from Coach Factory Outletare what we will give you. This kind of bag is really hot today. Coach Outlet is both suitable for party and daily life. If you are interested in it, please take action without hesitation. I think you won't miss the best Coach Outlet Canada.

4/26/2012 1:34:08 AM

Puma Ferrari Shoes said....


4/26/2012 3:09:49 AM

Foamposites said....

The popularity of basketball has made it the sport of choice for many people and also inspired great innovations in shoe designs among the manufacturers. The Nike brand has continued to offer the competition a real run for their money.

4/26/2012 6:57:07 PM

gucci outlet said....

We have a lot of things to do every day. More and more women take a lot of time in shopping. They go to the gucci outlet store. They have not enough gucci shoes and gucci handbags for ever. Now, they also like buy gucci product from the gucci outlet online store. You can find the women buy all gucci product. The Gucci Wallets for them are necessary. Then Gucci Wallets outlet at discount, can save a lot of money. The women wear Gucci Bikini on the sea. Then some of them wear Gucci T Shirts in the hot summer. I like Gucci Belts and Gucci Sunglasses the Gucci Belts outlet and Gucci Sunglasses outlet online are cheap. The Gucci Rings are liked buy girls. I women go to the gucci outlet to buy Women Gucci Sandals high heel, classic ren Gucci Casual Shoes and the Gucci Pumps Shoes. I find the women have a Gucci Earrings are so beautiful, then she buy a orange Gucci Ties for her husband!

4/26/2012 7:00:47 PM

Cheap Foamposites said....

Welcome to my store! Foamposites 2012 features a breathable mesh, multi-layer upper that offers a lightweight, second-skin-like fit.Cheap Foamposites is another nike running shoes solution for people aim to let people's foot feel free when they are running,Since the launch of the product has been widely accepted and loved,People love the feeling of wearing nike free running shoes,and enjoy it.nike Inc. increased nike free production efforts,the classic style including Cheap Foamposites and other styles,new and best style will be realeased in future,people will get more and more choose.and now more online shops offer to womens and mens,hope people can enjoy our products as they are underline shopping.  www.foampositeone.com

4/26/2012 8:59:20 PM

jordan 5 wolf grey said....

So, which attributes jordan 5 wolf grey really should jordan 5 manual you? Begin by confirming the jordan 4 manufacturing quantities within the shoebox and inside of tag. On chrome lace ends, you must see the Jumpman emblem or somewhere else dependent to the time the pair introduced.

4/27/2012 8:38:04 PM

Hyperfuse 2012 said....

Let's say that you have actually considered all the results of having a tattoo <a href="http://www.lebron9shoesforsale.com/"><b> nike lebron 9</b></a>. It's been considered that it'll be a life time dedication and is a permanent mark on the body <a href="http://www.nikefreerun2012cheap.com/"><b>Nike Free 3.0 </b></a>, aside from having it operatively extracted <a href="http://www.nikezoomhyperfuses.org/"><b>Hyperfuse 2012</b></a>. You understand just what type of design you might want to have <a href="http://www.2012jordanretro12.com/"><b>jordan 12 playoffs</b></a>. You understand just where on the body you'd like it imprinted <a href="http://www.nikefoampositecheap.com/"><b>nike foamposite</b></a>. Now, you have got to discover an excellent location on where you want it <a href="http://www.nikezoomhyperdunk.org/"><b>nike hyperdunk</b></a>. Chat with the tattoo artists and the staff members<a href="http://www.cheapnikelebron9.org/"><b>Nike Lebron 9</b></a>. If you don't feel comfortable asking any sort of questions or expressing concerns with them, chances are you will not feel comfy having them put a long-term mark on your body. You really should feel totally at ease as it's feasible that a sizable quantity of time could be spent by having them <a href="http://www.jordanspizikeshoes.com /"><b>jordan spizike</b></a>.Many like the Mini-Bodyguard as it is approximately 30% smaller than the full size Bodyguard and yet works just as well. Even with the smaller size, the Mini-Bodyguard fires out fast and hard <a href="http://www.cheapnikelebron9.org/"><b>Nike Lebron 9</b></a>. Knife enthusiasts along with those in need of a multi-purpose functional blade love this model <a href="http://www.cheapfoamposites.org/"><b>Foamposites</b></a>.


4/28/2012 1:41:26 AM

nike air max said....


4/28/2012 1:41:41 AM

nike air max said....


4/28/2012 1:42:55 AM

Cat Clock with Pendulum said....

I can’t think of a better place to send you than Retro Renovation.  Pam is in the “know” on all things retro.  Check out her recent post about Kit-Cat as well as all of the other resources she offers:


Cat Clock with Pendulum Cat Clock with Pendulum

5/6/2012 6:45:49 PM

Cat Clock with Pendulum said....

I can’t think of a better place to send you than Retro Renovation.  Pam is in the “know” on all things retro.  Check out her recent post about Kit-Cat as well as all of the other resources she offers:

Cat Clock with Pendulum Cat Clock with Pendulum

5/6/2012 6:46:18 PM

louis vuitton outlet said....

Louis Vuitton Outlet

lead global luxury and No.1 fashion frontier!Louis Vuitton handbags,purses,sunglasses,travel bags are hot sale 75% off online!Welcome to buy!Thank you for your share.

Louis Vuitton Handbags


Louis Vuitton Handbags sale


LV Outlet


5/9/2012 9:15:38 PM

klkjhjkshg said....

[url=http://www.footballbootsforsale.org/]Football Boots[/url]

[url=http://www.footballbootsforsale.org/]Cheap Football Boots[/url]

[url=http://www.footballbootsforsale.org/adidas-adipower-c-87.html]Adidas Adipower[/url]

[url=http://www.footballbootsforsale.org/adidas-adipure-c-88.html]Adidas Adipure[/url]

[url=http://www.footballbootsforsale.org/adidas-f50-adizero-c-89.html]Adidas F50 Adizero[/url]

[url=http://www.footballbootsforsale.org/adidas-indoor-soccer-shoes-c-90.html]Adidas Indoor Soccer Shoes[/url]

[url=http://www.footballbootsforsale.org/nike-ctr360-maestri-c-91.html]Nike CTR360 Maestri[/url]

[url=http://www.footballbootsforsale.org/nike-mercurial-c-93.html]Nike Mercurial[/url]

[url=http://www.footballbootsforsale.org/nike-tiempo-legend-c-95.html]Nike Tiempo Legend[/url]

[url=http://www.footballbootsforsale.org/nike-total-90-laser-c-96.html]Nike Total 90 Laser[/url]

[url=http://www.footballbootsforsale.org/nike-team-soccer-shoes-c-94.html]Nike Team Soccer Shoes[/url]

[url=http://www.footballbootsforsale.org/nike-indoor-soccer-shoes-c-92.html]Nike Indoor Soccer Shoes[/url]

5/11/2012 8:40:20 PM

nike air max said....


5/13/2012 11:28:38 PM

nike air max said....


5/13/2012 11:30:19 PM

brother printer cartridges said....

<a href="http://www.rhinks.com/product_cat_list/HP-c9722.html">cheap hp ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/HP-c9722.html">hp ink cartridge 364</a>
<a herf="http://www.rhinks.com/product_cat_list/HP-c9722.html">hp 564 ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/HP-c9722.html">hp 300 ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/HP-c9722.html">buy hp ink cartridges</a>

<a href="http://www.rhinks.com/product_cat_list/Canon-c9680.html">canon printer cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Canon-c9680.html">canon printer ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Canon-c9680.html">canon mp210 ink</a>
<a href="http://www.rhinks.com/product_cat_list/Canon-c9680.html">canon mp250 ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/Canon-c9680.html">canon ink cartridges cheap</a>

<a href="http://www.rhinks.com/product_cat_list/Lexmark-c9726.html">lexmark cheap ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Lexmark-c9726.html">lexmark compatible ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Lexmark-c9726.html">lexmark ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/Lexmark-c9726.html">lexmark 100 ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/Lexmark-c9726.html">lexmark x5650 ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Brother-c9679.html">brother ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Brother-c9679.html">brother printer cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Brother-c9679.html">brother printers ink cartridges</a>
<a href="http://www.rhinks.com/product_cat_list/Brother-c9679.html">brother mfc ink cartridge</a>
<a href="http://www.rhinks.com/product_cat_list/Brother-c9679.html">brother ink cartridge refill</a>
<a href="http://www.rhinks.com/products_info/Canon-ink-cartridge-CL-51-154430.html">discount ink cartridges</a>
<a href="http://www.rhinks.com/products_info/Canon-ink-cartridge-Canon-BC-02-154435.html">cheap printer ink cartridges</a>
<a href="http://www.rhinks.com/products_info/Canon-CL-41-154437.html">canon printer cartridges</a>
<a href="http://www.rhinks.com/products_info/HP-ink-cartridge-H-854-C9361Z--154447.html">recycled ink cartridge</a>
<a href="http://www.rhinks.com/products_info/HP-ink-cartridge-H-94-C8765WN--154444.html">refillable ink cartridges</a>

5/14/2012 2:30:19 AM

xinjiefeng said....
<a href="http://www.webbingcn.com/search/11230/webbing.html" target="_blank">webbing</a>
<a href="http://www.webbingcn.com/search/11230/polypropylene webbing.html" target="_blank">polypropylene webbing</a>
<a href="http://www.webbingcn.com/search/11230/webbing material.html" target="_blank">webbing material</a>
<a href="http://www.webbingcn.com/search/11230/plain webbing.html" target="_blank">plain webbing</a>
<a href="http://www.webbingcn.com/search/11230/flat webbing.html" target="_blank">flat webbing</a>
<a href="http://www.webbingcn.com/search/11230/narrow woven webbing.html" target="_blank">narrow woven webbing</a>
<a href="http://www.webbingcn.com/search/11230/pp webbing band.html" target="_blank">pp webbing band</a>
<a href="http://www.webbingcn.com/search/11230/pp webbing for bag.html" target="_blank">pp webbing for bag</a>
<a href="http://www.webbingcn.com/search/11230/bag's pp webbing,.html" target="_blank">bag's pp webbing,</a>
<a href="http://www.webbingcn.com/search/11230/webbing strap.html" target="_blank">webbing strap</a>
<a href="http://www.webbingcn.com/search/11230/webbing belt.html" target="_blank">webbing belt</a>
<a href="http://www.webbingcn.com/search/11230/webbing tape.html" target="_blank">webbing tape</a>
<a href="http://www.webbingcn.com/search/11230/webbing manufacturer.html" target="_blank">webbing manufacturer</a>
<a href="http://www.webbingcn.com/search/11230/stripe webbing.html" target="_blank">stripe webbing</a>
<a href="http://www.webbingcn.com/search/11230/wholesale webbing.html" target="_blank">wholesale webbing</a>
<a href="http://www.webbingcn.com/search/11230/1 inch webbing.html" target="_blank">1 inch webbing</a>
<a href="http://www.webbingcn.com/search/11230/pp webbing.html" target="_blank">pp webbing</a>
<a href="http://www.webbingcn.com/search/11230/herringbone webbing.html" target="_blank">herringbone webbing</a>
<a href="http://www.webbingcn.com/search/11230/webbing straps.html" target="_blank">webbing straps</a>
<a href="http://www.webbingcn.com/search/11230/webbing suppliers.html" target="_blank">webbing suppliers</a>
<a href="http://www.webbingcn.com/search/11230/cheap webbing.html" target="_blank">cheap webbing</a>
<a href="http://www.webbingcn.com/search/11230/twill webbing.html" target="_blank">twill webbing</a>
<a href="http://www.webbingcn.com/search/11236/polyester webbing.html" target="_blank">polyester webbing</a>
<a href="http://www.webbingcn.com/search/11236/polyester webbing suppliers.html" target="_blank">polyester webbing suppliers</a>
<a href="http://www.webbingcn.com/search/11236/polyester webbing straps.html" target="_blank">polyester webbing straps</a>
<a href="http://www.webbingcn.com/search/11236/polyester webbing wholesale.html" target="_blank">polyester webbing wholesale</a>
<a href="http://www.webbingcn.com/search/11237/cotton webbing.html" target="_blank">cotton webbing</a>
<a href="http://www.webbingcn.com/search/11237/heavy cotton webbing.html" target="_blank">heavy cotton webbing</a>
<a href="http://www.webbingcn.com/search/11237/1 inch cotton webbing.html" target="_blank">1 inch cotton webbing</a>
<a href="http://www.webbingcn.com/search/11237/cotton webbing manufacturers.html" target="_blank">cotton webbing manufacturers</a>
<a href="http://www.webbingcn.com/search/11238/seat belt webbing.html" target="_blank">seat belt webbing</a>
<a href="http://www.webbingcn.com/search/11238/nylon straps.html" target="_blank">nylon straps</a>
<a href="http://www.webbingcn.com/search/11238/nylon webbing.html" target="_blank">nylon webbing</a>
<a href="http://www.webbingcn.com/search/11238/nylon webbing by the yard.html" target="_blank">nylon webbing by the yard</a>
<a href="http://www.webbingcn.com/search/11238/nylon webbing wholesale.html" target="_blank">nylon webbing wholesale</a>
<a href="http://www.webbingcn.com/search/11238/jacquard webbing tape.html" target="_blank">jacquard webbing tape</a>
<a href="http://www.webbingcn.com/search/11238/jacquard webbing ribbon.html" target="_blank">jacquard webbing ribbon</a>
<a href="http://www.webbingcn.com/search/11238/webbing from China.html" target="_blank">webbing from China</a>

5/14/2012 6:35:09 PM

geobbyign said....
kGtvtzLnpl p90x dvd mJozbbDtrh p90x for cheap jLxclhKxoq buy p90x in store gIoavbOnxx p90x dvd set vUrdskTtkq http://www.p90xforsale.ewebsite.com/ wOqiabZhfp http://www.cheapp90x.ewebsite.com/ tHdvmpBrsr http://buyp90x.webgarden.com/ yWmhqhFckq http://www.cheapp90xdvdset.ewebsite.com/

5/23/2012 1:31:32 PM

air max 2012 said....


6/28/2012 12:13:57 AM

Name: *
Email (not displayed): *
Comments: *

So, you Human...?