- Timestamp:
- 07/04/11 20:21:48 (23 months ago)
- Location:
- apps/iphone/superbook/trunk
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
DotTel_SDK/Classes/NetworkUtility.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/superbook/trunk
- Property svn:externals set to
-
apps/iphone/superbook/trunk/DotTel_SDK/Classes/NetworkUtility.m
r551 r851 96 96 97 97 + (NetworkUtility *)sharedInstance { 98 @synchronized(self) { 99 if (sharedNetworkUtility == nil) { 100 [[[self alloc] init] autorelease]; // autorelease (does nothing) to avoid clang warning 101 } 98 if (sharedNetworkUtility == nil) { 99 sharedNetworkUtility = [[super allocWithZone:NULL] init]; 102 100 } 103 101 return sharedNetworkUtility; … … 105 103 106 104 + (id)allocWithZone:(NSZone *)zone { 107 @synchronized(self) { 108 if (sharedNetworkUtility == nil) { 109 sharedNetworkUtility = [super allocWithZone:zone]; 110 return sharedNetworkUtility; // assignment and return on first allocation 111 } 112 } 113 return nil; // on subsequent allocation attempts return nil 105 return [[self sharedInstance] retain]; 114 106 } 115 107 … … 124 116 125 117 - (unsigned)retainCount { 126 return UINT_MAX; // denotes an object that cannot be released118 return NSUIntegerMax; // denotes an object that cannot be released 127 119 } 128 120








