Model class for NSDictionary information with Lazy Loading <p>My application utilizes approx. 50+ .plists that are used as NSDictionaries. </p> <p>Several of my view controllers need access to the properties of the dictionaries, so instead of writing duplicate code to retrieve the .plist, convert the values to a dictionary, etc, each time I need the info, I thought a model class to hold the data and supply information would be appropriate. </p> <p>The application isn't very large, but it does handle a good deal of data. I'm not as skilled in writing model classes that conform to the MVC paradigm, and <i>I'm looking for some strategies for this implementation that also supports lazy loading..</i></p> <p>This model class should serve to supply data to any view controller that needs it and perform operations on the data (such as adding entries to dictionaries) when requested by the controller</p> <h3>functions currently planned:</h3> <ul> <li>returning the count on any dictionary</li> <li>adding one or more dictionaries together</li> </ul> <p>Currently, I have this method for supporting the count lookup for any dictionary. Would this be an example of lazy loading?</p> <pre><code>-(NSInteger)countForDictionary: (NSString *)nameOfDictionary { NSBundle *bundle = [NSBundle mainBundle]; NSString *plistPath = [bundle pathForResource: nameOfDictionary ofType: @"plist"]; //load plist into dictionary NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile: plistPath]; NSInteger count = [dictionary count] [dictionary release]; [return count] } </code></pre>