Developer Area

Show
Ignore:
Timestamp:
07/04/11 20:21:48 (3 years ago)
Author:
henri
Message:

Massive commit across most files.

Location:
apps/iphone/superbook/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/superbook/trunk

  • apps/iphone/superbook/trunk/DotTel_SDK/Classes/NetworkUtility.m

    r551 r851  
    9696 
    9797+ (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]; 
    102100    } 
    103101    return sharedNetworkUtility; 
     
    105103 
    106104+ (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]; 
    114106} 
    115107 
     
    124116 
    125117- (unsigned)retainCount { 
    126     return UINT_MAX;  // denotes an object that cannot be released 
     118    return NSUIntegerMax;  // denotes an object that cannot be released 
    127119} 
    128120 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us