// // GlobalWebController.m // PLUCdraft // // Created by PLUC SeniorDesign on 3/18/15. // Copyright (c) 2015 Alexander W. Moore. All rights reserved. // #import "GlobalWebController.h" @implementation GlobalWebController @synthesize web; @synthesize isInitialized; static GlobalWebController *instance = nil; +(GlobalWebController*) getInstance { @synchronized(self) { if (instance==nil) { instance = [GlobalWebController new]; instance.isInitialized = false; } } return instance; } +(GlobalWebController*) resetInstance { @synchronized(self) { instance = [GlobalWebController new]; instance.isInitialized = false; } return instance; } @end