Why a static variable for sharedStore rather than a property


#1

Hi,

In Chapter 8, p166, in the BNRItemStore class, why did the authors not use a @property (...) sharedStore; in the class extension, and chose instead to create a static variable in the class method sharedStore static BNRItemStore *sharedStore;

Seems to me a @property would achieve the same result, except perhaps a bit less efficient because of the additional getter and setter code that would get generated. But that seems minimal.

Very good book, btw, for a newbie like me getting into iOS. The right info at the right time, no more and no less. :smiley:
E.