small medium large xlarge

Generic-user-small
16 Sep 2009, 14:56
Paul (5 posts)

Does this book cover passing information between classes, or accessing global state through the use of singletons?

Generic-user-small
16 Sep 2009, 16:58
Tim Isted (105 posts)

There is an early chapter on passing information between objects, but this is mainly about method naming, object and scalar variables, and passing pointers or values by reference etc. There is also a later chapter, not yet available in the Beta, which introduces notifications and delegates. This chapter will probably include information on singletons as well, but I’m not 100% sure yet.

Generic-user-small
16 Sep 2009, 18:51
Paul (5 posts)

Great - thanks Tim. I’d really recommend you cover that, as it was one of the most confusing things for me as a beginner. How do I communicate between View controllers, or get the value of some variable which needs global scope. So either using references back to instance variables of the appDelegate or using globals or the recommended way, which I believe is to use a Singleton class.

You must be logged in to comment