Developer Area

Show
Ignore:
Timestamp:
01/20/09 16:31:35 (6 years ago)
Author:
henri
Message:

Refactoring: Moved RecordEdit? to its own NIB to accelerate startup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/RecordEditController.m

    r149 r191  
    2323 
    2424#pragma mark ----- Calling methods 
     25 
     26- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 
     27    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {             
     28                sArrKey = [[NSMutableArray arrayWithCapacity:30] retain]; 
     29                sArrVal = [[NSMutableArray arrayWithCapacity:30] retain]; 
     30                liArrKey = [[NSMutableArray arrayWithCapacity:10] retain]; 
     31                liArrVal = [[NSMutableArray arrayWithCapacity:10] retain]; 
     32    } 
     33    return self; 
     34} 
    2535 
    2636- (void)presentViewForRecord:(NSDictionary *)aRec { 
     
    135145- (void)viewDidLoad { 
    136146    [super viewDidLoad]; 
    137  
    138         sArrKey = [[NSMutableArray arrayWithCapacity:30] retain]; 
    139         sArrVal = [[NSMutableArray arrayWithCapacity:30] retain]; 
    140         liArrKey = [[NSMutableArray arrayWithCapacity:10] retain]; 
    141         liArrVal = [[NSMutableArray arrayWithCapacity:10] retain]; 
    142147} 
    143148 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us