#6 Understanding notifications

In this episode, I will show you how notifications can be used by an object to inform an arbitrary number of observer objects of a particular action.

[update] : In the screencast, I renamed contentView -> _contentView and slider -> _slider. It is a good guideline *not* to use the _ for the instance variables in your code to avoid conflict with Cappuccino super class instance variables. I’ve updated the eposide code to reflect those changes. Thanks to Ross for pointing this out.

6 Comments

  1. steve says:

    awesome once again :)

  2. Steven says:

    Thanks for all the excellent cappuccinocasts! Have you thought about doing one for an example using nib2cib?

  3. [...] In this Episode, I will illustrate how an observer object can listen to notifications sent by a particular object. I assume you have already watched Episode #6. [...]

  4. Thomas says:

    @Steven : thanks for your suggestion. I’ll do a screencast about nib2cib probably later. The next screencasts I’d like to do are about Rails + Cappuccino

  5. Matt says:

    I’m just getting into Cappuccino and these are a massive help – thank you! I would love to see a screencast about document based applications.

  6. Thomas says:

    @Matt : thanks for your feedback and your suggestion. I add this one to my list.