Cappuccino Casts : #6 Understanding notifications

49 views
Skip to first unread message

Thomas Balthazar

unread,
Apr 6, 2009, 3:31:59 AM4/6/09
to objec...@googlegroups.com
http://cappuccinocasts.com/2009/04/06/6-understanding-notifications/

The next one will probably talk about Rails+Cappuccino.

Any feedback would be appreciated.

I hope you'll enjoy,
Thomas.

Ross Boucher

unread,
Apr 6, 2009, 3:46:34 AM4/6/09
to objec...@googlegroups.com
Great stuff as usual. The only comment I had was, its not necessary to
spend so much time renaming those variables. Your code shouldn't use
_'s anyway, really only Cappuccino code needs to use underscores.

I also think people would love to hear more about the different
notification center modes. One object, all objects, etc.

Thanks for doing this!
Ross

Thomas Balthazar

unread,
Apr 6, 2009, 3:59:56 AM4/6/09
to objec...@googlegroups.com
Hello Ross,

Thanks for the feedback, appreciated!

The _ is for private instance variables in Cappuccino, right?
Why shouldn't we use the same convention in a Capp application? To
avoid conflicts, or something like that?

When you talk about the different notification center modes, you talk
about the 'object' parameter of the addObserver method being set to
nil (all objects) or to a particular object?

Cheers,
Thomas.

Ross Boucher

unread,
Apr 6, 2009, 4:15:32 AM4/6/09
to objec...@googlegroups.com

On Apr 6, 2009, at 12:59 AM, Thomas Balthazar wrote:

>
> Hello Ross,
>
> Thanks for the feedback, appreciated!
>
> The _ is for private instance variables in Cappuccino, right?
> Why shouldn't we use the same convention in a Capp application? To
> avoid conflicts, or something like that?

Yes, to avoid conflicts. If you never use _ you never have to worry
about conflicting with one of your Cappuccino superclasses ivars. It's
not a requirement, but a reasonable guideline to follow.


> When you talk about the different notification center modes, you talk
> about the 'object' parameter of the addObserver method being set to
> nil (all objects) or to a particular object?

Yes, observers can choose to listen to all notifications or just
notifications from a specific object.

Thomas Balthazar

unread,
Apr 6, 2009, 4:55:22 AM4/6/09
to objec...@googlegroups.com
I've updated the post and the code to take your remark into account :
http://cappuccinocasts.com/2009/04/06/6-understanding-notifications/

Thanks!
Thomas.

Angel Imaz

unread,
Apr 6, 2009, 2:03:37 PM4/6/09
to objec...@googlegroups.com

Hello all,

After playing with the NibApplication and talking to outlets.

I was wondering, the table widgets and outline like widgets that we see in atlas, are they going to be available in 0.7?

Take care!

Angel
Reply all
Reply to author
Forward
0 new messages