iphone Programming Glossary: searchdict
Singleton shared data source in Objective-C http://stackoverflow.com/questions/355449/singleton-shared-data-source-in-objective-c Here's the implementation for my singleton heavily modeled after this thread @implementation SearchData @synthesize searchDict @synthesize searchArray id init if self super init NSString path NSBundle mainBundle bundlePath NSString finalPath path.. NSString path NSBundle mainBundle bundlePath NSString finalPath path stringByAppendingPathComponent @ searches.plist searchDict NSDictionary dictionaryWithContentsOfFile finalPath searchArray searchDict allKeys return self void dealloc searchDict release.. @ searches.plist searchDict NSDictionary dictionaryWithContentsOfFile finalPath searchArray searchDict allKeys return self void dealloc searchDict release searchArray release super dealloc static SearchData sharedSingleton..
|