Changeset 601 for apps/iphone/my.tel/trunk
- Timestamp:
- 12/12/09 06:19:09 (3 years ago)
- Location:
- apps/iphone/my.tel/trunk
- Files:
-
- 9 modified
-
Classes/API Classes/JsonConnection.h (modified) (2 diffs)
-
Classes/API Classes/Record.m (modified) (1 diff)
-
Classes/ProfileRecordsViewController.m (modified) (5 diffs)
-
Classes/ProfileViewController.m (modified) (7 diffs)
-
Classes/RecordEditController.h (modified) (1 diff)
-
Classes/RecordEditController.m (modified) (7 diffs)
-
Classes/RecordViewController.m (modified) (5 diffs)
-
English.lproj/ProfileRecords.xib (modified) (15 diffs)
-
offlineSampleData.plist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/API Classes/JsonConnection.h
r593 r601 30 30 BOOL isProcessing; 31 31 NSURL *connectionUrl; 32 NSString *action; 32 33 @private 33 34 NSObject *theDelegate; … … 36 37 NSDictionary *payload; 37 38 NSMutableString *responsePayload; 38 NSString *action;39 39 } 40 40 -
apps/iphone/my.tel/trunk/Classes/API Classes/Record.m
r593 r601 22 22 } 23 23 24 // Override method to convert labels into long labels 25 26 - (void)parsePayload { 27 [super parsePayload]; 28 if ([action isEqualToString:@"getrecordlist"]) { 29 NSMutableArray *convertedArray = [NSMutableArray arrayWithArray:(NSArray *)[self.parsedJSON valueForKey:@"recordList"]]; 30 NSUInteger i, count = [convertedArray count]; 31 for (i = 0; i < count; i++) { 32 NSDictionary *aDict = [convertedArray objectAtIndex:i]; 33 // set label: if long label doesn't exist but short does, replace short with long 34 // if short exists and long exists, prepend short to long if not already prepended 35 // in all cases, clear short 36 BOOL hasLabel = NO; 37 BOOL hasLongLabel = NO; 38 BOOL didMakeChange = NO; 39 if ([[aDict objectForKey:@"label"] isKindOfClass:[NSString class]] && [[aDict objectForKey:@"label"] length] > 0) 40 hasLabel = YES; 41 if ([[aDict objectForKey:@"longLabel"] isKindOfClass:[NSString class]] && [[aDict objectForKey:@"longLabel"] length] > 0) 42 hasLongLabel = YES; 43 44 NSMutableDictionary *convertedDict; 45 if (! hasLongLabel) { 46 if (hasLabel) { 47 // Convert label to long label 48 convertedDict = [NSMutableDictionary dictionaryWithDictionary:aDict]; 49 [convertedDict setObject:[convertedDict objectForKey:@"label"] forKey:@"longLabel"]; 50 [convertedDict setObject:@"" forKey:@"label"]; 51 didMakeChange = YES; 52 } 53 } else { 54 if (hasLabel) { 55 if (! [[aDict objectForKey:@"longLabel"] hasPrefix:[aDict objectForKey:@"label"]]) { 56 // If both long and short exist, and short isn't the first part of long, then merge "short - long" 57 convertedDict = [NSMutableDictionary dictionaryWithDictionary:aDict]; 58 [convertedDict setObject:[NSString stringWithFormat:@"%@ - %@", 59 [convertedDict objectForKey:@"label"], 60 [convertedDict objectForKey:@"longLabel"]] 61 forKey:@"longLabel"]; 62 [convertedDict setObject:@"" forKey:@"label"]; 63 didMakeChange = YES; 64 } 65 } 66 } 67 if (didMakeChange) { 68 [convertedArray replaceObjectAtIndex:i withObject:convertedDict]; 69 NSMutableDictionary *newJSON = [NSMutableDictionary dictionaryWithDictionary:self.parsedJSON]; 70 [newJSON setObject:convertedArray forKey:@"recordList"]; 71 self.parsedJSON = newJSON; 72 } 73 } 74 } 75 } 76 24 77 @end -
apps/iphone/my.tel/trunk/Classes/ProfileRecordsViewController.m
r593 r601 74 74 [super viewDidLoad]; 75 75 self.title = [self.theProfile objectForKey:@"name"]; 76 self.theTable.tableHeaderView = self.tableHeaderView;76 // self.theTable.tableHeaderView = self.tableHeaderView; 77 77 self.navigationItem.rightBarButtonItem = self.editButtonItem; 78 self.theTable.allowsSelection = YES;79 self.theTable.allowsSelectionDuringEditing = YES; // so that the cells can be enabled/disabled78 // self.theTable.allowsSelection = YES; 79 // self.theTable.allowsSelectionDuringEditing = YES; // so that the cells can be enabled/disabled 80 80 recordTableHeight = kRowHeight; 81 81 if ([[self.theProfile valueForKey:@"isActive"] integerValue] == 1) { 82 82 self.buttonActivate.enabled = NO; 83 } else { 83 self.buttonActivate.title = @"Profile is Active"; 84 } else { 85 self.buttonActivate.title = @"Activate Profile"; 84 86 self.buttonActivate.enabled = YES; 85 87 } … … 150 152 NSMutableDictionary *uiItem = [[uiArray objectAtIndex:indexPath.row] retain]; 151 153 [cell.labelService setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"service"]]]; 152 [cell.labelLabel setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"l abel"]]];154 [cell.labelLabel setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"longLabel"]]]; 153 155 [cell.labelValue setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"value"]]]; 154 156 … … 254 256 default: 255 257 // If there's no label, shorten the row by the label point size + 2 256 if ([[[uiArray objectAtIndex:indexPath.row] objectForKey:@"l abel"] length] == 0) {258 if ([[[uiArray objectAtIndex:indexPath.row] objectForKey:@"longLabel"] length] == 0) { 257 259 return (recordTableHeight - 14); 258 260 } else { … … 273 275 [super setEditing:NO animated:YES]; 274 276 self.theTable.editing = NO; 275 [self displayDisabledRecords: YES];277 [self displayDisabledRecords:NO]; 276 278 } 277 279 278 280 - (IBAction)didClickActivate:(id)sender { 279 281 [self activateProfile]; 282 self.buttonActivate.enabled = NO; 283 self.buttonActivate.title = @"Profile is Active"; 280 284 } 281 285 … … 399 403 400 404 // set label 401 if ([[jsonItem objectForKey:@"l abel"] isKindOfClass:[NSNull class]])402 [uiItem setObject:@"" forKey:@"l abel"];405 if ([[jsonItem objectForKey:@"longLabel"] isKindOfClass:[NSNull class]]) 406 [uiItem setObject:@"" forKey:@"longLabel"]; 403 407 else 404 [uiItem setObject:(NSString *)[jsonItem objectForKey:@"l abel"] forKey:@"label"];408 [uiItem setObject:(NSString *)[jsonItem objectForKey:@"longLabel"] forKey:@"longLabel"]; 405 409 406 410 // set public/private -
apps/iphone/my.tel/trunk/Classes/ProfileViewController.m
r600 r601 25 25 26 26 + (ProfileViewController *)controllerWithDelegate:(id <TelControllerDelegate>)aDelegate preload:(BOOL)preload { 27 ProfileViewController *theC = [[[ProfileViewController alloc] initWithStyle:UITableViewStyle Plain] autorelease];27 ProfileViewController *theC = [[[ProfileViewController alloc] initWithStyle:UITableViewStyleGrouped] autorelease]; 28 28 theC.delegate = aDelegate; 29 29 theC.profilesArray = [NSMutableArray arrayWithCapacity:10]; … … 55 55 self.navigationItem.rightBarButtonItem = [self editButtonItem]; 56 56 self.title = @"Profiles"; 57 self.tableView.allowsSelectionDuringEditing = YES; 57 58 } 58 59 … … 89 90 } 90 91 91 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {92 return [[MyTelConnect sharedInstance] topDomainFromDomain:[self.delegate domain]];93 }92 //- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 93 // return [[MyTelConnect sharedInstance] topDomainFromDomain:[self.delegate domain]]; 94 //} 94 95 95 96 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { … … 116 117 if (recordsCount > 0) 117 118 recordsCount -= 1; 118 cell.textLabel.text = (NSString *)[aProf objectForKey:@"name"]; 119 119 if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) { 120 cell.textLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:cell.textLabel.font.pointSize]; 121 [cell setNeedsLayout]; 122 } 120 123 if ([[aProf objectForKey:@"isActive"] integerValue] == 1) { 121 124 cell.textLabel.textColor = [UIColor blueColor]; … … 125 128 cell.detailTextLabel.text = @"Inactive"; 126 129 } 127 if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) { 128 cell.textLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:cell.textLabel.font.pointSize]; 129 } 130 cell.textLabel.text = (NSString *)[aProf objectForKey:@"name"]; 130 131 [aProf release]; 131 132 return cell; … … 138 139 [aProf release]; 139 140 [self.navigationController pushViewController:prVC animated:YES]; 140 }141 142 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {143 NSDictionary *aProf = [[profilesArray objectAtIndex:indexPath.row] retain];144 if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) {145 return NO;146 }147 if ([[aProf objectForKey:@"isActive"] integerValue] == 1) {148 return NO;149 }150 return YES;151 141 } 152 142 … … 162 152 } 163 153 } 154 155 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { 156 NSDictionary *aProf = [[profilesArray objectAtIndex:indexPath.row] retain]; 157 if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) { 158 return UITableViewCellEditingStyleNone; 159 } 160 if ([[aProf objectForKey:@"isActive"] integerValue] == 1) { 161 return UITableViewCellEditingStyleNone; 162 } 163 return UITableViewCellEditingStyleDelete; 164 } 165 166 //- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { 167 // NSDictionary *aProf = [[profilesArray objectAtIndex:indexPath.row] retain]; 168 // if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) { 169 // return NO; 170 // } 171 // if ([[aProf objectForKey:@"isActive"] integerValue] == 1) { 172 // return NO; 173 // } 174 // return YES; 175 //} 164 176 165 177 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle -
apps/iphone/my.tel/trunk/Classes/RecordEditController.h
r593 r601 36 36 NSDictionary *naptrValuePlaceholders; 37 37 UIResponder *currentResponder; 38 BOOL isTerminal; 38 39 } 39 40 40 41 + (RecordEditController *)controllerWithServiceKeys:(NSDictionary *)skeysDict lihKeys:(NSDictionary *)liDict; 41 - (void)setStateForTerminal:(BOOL) isTerminal;42 - (void)setStateForTerminal:(BOOL)terminal; 42 43 - (void)setStateForButtonPrivacy; 43 44 - (void)slideViewForEditing:(BOOL)isEditing; -
apps/iphone/my.tel/trunk/Classes/RecordEditController.m
r593 r601 137 137 rLabel.text = @""; 138 138 _record = [[NSMutableDictionary dictionaryWithObjectsAndKeys: 139 @"0", @"apiId", 140 [self.delegate domain], @"domainName", 141 [NSArray arrayWithObject:@"voice"], @"serviceKeys", 142 @"", @"label", 143 [NSArray array], @"locations", 144 [NSArray array], @"profiles", 145 [NSArray array], @"groups", 146 @"1", @"terminal", 147 nil] retain]; 139 @"0", @"apiId", 140 [self.delegate domain], @"domainName", 141 [NSArray arrayWithObject:@"voice"], @"serviceKeys", 142 @"", @"label", 143 @"", @"longLabel", 144 [NSArray array], @"locations", 145 [NSArray array], @"profiles", 146 [NSArray array], @"groups", 147 @"1", @"terminal", 148 nil] retain]; 148 149 } else { // edit 149 150 self.title = @"Edit Item"; 150 151 [_record setObject:[self.delegate domain] forKey:@"domainName"]; 151 // A n NTNmay not have the below items152 if ([[_record objectForKey:@"l abel"] isKindOfClass:[NSNull class]])153 [_record setObject:@"" forKey:@"l abel"];152 // A record may or may not have the below items 153 if ([[_record objectForKey:@"longLabel"] isKindOfClass:[NSNull class]]) 154 [_record setObject:@"" forKey:@"longLabel"]; 154 155 if ([[_record objectForKey:@"locations"] isKindOfClass:[NSNull class]]) 155 156 [_record setObject:[NSArray array] forKey:@"locations"]; … … 167 168 168 169 rValue.text = [_record objectForKey:@"value"]; 169 rLabel.text = [_record objectForKey:@"l abel"];170 rLabel.text = [_record objectForKey:@"longLabel"]; 170 171 } 171 172 // We only respect the first LIH and service types. … … 217 218 // apiId and domainName are set at the start in presentView 218 219 [_record setObject:rValue.text forKey:@"value"]; 219 [_record setObject:rLabel.text forKey:@"l abel"];220 [_record setObject:rLabel.text forKey:@"longLabel"]; 220 221 221 222 // Store the record … … 245 246 groups: [1, 2, 3], 246 247 profiles: [12, 23, 47], 247 locations: ["x-home", "x-mobile"] 248 locations: ["x-home", "x-mobile"], 249 longLabel: "Some more details about my home number" 248 250 }; 249 251 … … 280 282 groups: [], 281 283 profiles: [], 282 globalProfile: true 284 globalProfile: true, 285 longLabel: "Some text" 283 286 }; 284 287 … … 322 325 #pragma mark ------ Utility methods 323 326 324 - (void)setStateForTerminal:(BOOL) isTerminal {327 - (void)setStateForTerminal:(BOOL)terminal { 325 328 // NTNs now have all the features of terminal NAPTRs including labels 326 329 // if (isTerminal) { 327 330 // } else { 328 331 // } 332 isTerminal = terminal; 329 333 rLabel.placeholder = @""; 330 334 rLabel.enabled = YES; … … 425 429 return 0; 426 430 } else { 427 if ( [[sArrKey objectAtIndex:[rPicker selectedRowInComponent:0]] isEqualToString:@"ntn"]) // ntn: disable locations431 if (! isTerminal ) // ntn: disable locations 428 432 return 0; 429 433 } -
apps/iphone/my.tel/trunk/Classes/RecordViewController.m
r593 r601 173 173 NSMutableDictionary *uiItem = [[uiArray objectAtIndex:indexPath.row] retain]; 174 174 [cell.labelService setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"service"]]]; 175 [cell.labelLabel setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"l abel"]]];175 [cell.labelLabel setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"longLabel"]]]; 176 176 [cell.labelValue setText:[NSString stringWithFormat:@"%@", [uiItem objectForKey:@"value"]]]; 177 177 … … 289 289 } 290 290 // If there's no label, shorten the row by the label point size + 2 291 if ([[[uiArray objectAtIndex:indexPath.row] objectForKey:@"l abel"] length] == 0) {291 if ([[[uiArray objectAtIndex:indexPath.row] objectForKey:@"longLabel"] length] == 0) { 292 292 return (recordTableHeight - 14); 293 293 } else { … … 362 362 // {apiId: 23, terminal: true, 363 363 // serviceKeys: ["voice", "fax"], value: "+34.34343443", 364 // label: "my home number",groups: [1, 3],364 // groups: [1, 3], 365 365 // profiles: [12, 23], global: false, 366 // locations: ["x-home", "x-mobile"], editable: true} 366 // locations: ["x-home", "x-mobile"], editable: true, 367 // longLabel: "Some text to describe my home number"} 367 368 #ifdef DEBUG 368 369 NSLog(@"Naptr Rec in JSON: %@", [jsonItem descriptionInStringsFileFormat]); … … 385 386 386 387 // set label 387 if ([[jsonItem objectForKey:@"l abel"] isKindOfClass:[NSNull class]])388 [uiItem setObject:@"" forKey:@"l abel"];388 if ([[jsonItem objectForKey:@"longLabel"] isKindOfClass:[NSNull class]]) 389 [uiItem setObject:@"" forKey:@"longLabel"]; 389 390 else 390 [uiItem setObject:(NSString *)[jsonItem objectForKey:@"l abel"] forKey:@"label"];391 [uiItem setObject:(NSString *)[jsonItem objectForKey:@"longLabel"] forKey:@"longLabel"]; 391 392 392 393 // set public/private … … 468 469 // profiles: [12, 23], global: false, 469 470 // locations: ["x-home", "x-mobile"], editable: true}, 470 // {apiId: 12, terminal: true, serviceKeys: ["web"],, 471 // longLabel: "Some text to describe my home number", 472 // {apiId: 12, terminal: true, serviceKeys: ["web"],, 471 473 // value: "www.telnic.org", label: "my homepage", 472 474 // groups: [3], profiles: [], global: true, 473 475 // locations: ["x-home"], editable: true}, 474 // {apiId: 12, terminal: false, value: "stan.cartman.tel.",476 // {apiId: 12, terminal: false, value: "stan.cartman.tel.", 475 477 // groups: [3], profiles: [], global: true}], 476 478 // actionMessages: ["request successful", -
apps/iphone/my.tel/trunk/English.lproj/ProfileRecords.xib
r589 r601 3 3 <data> 4 4 <int key="IBDocument.SystemTarget">768</int> 5 <string key="IBDocument.SystemVersion">10 B504</string>5 <string key="IBDocument.SystemVersion">10C540</string> 6 6 <string key="IBDocument.InterfaceBuilderVersion">732</string> 7 <string key="IBDocument.AppKitVersion">1038.2 </string>8 <string key="IBDocument.HIToolboxVersion">4 37.00</string>7 <string key="IBDocument.AppKitVersion">1038.25</string> 8 <string key="IBDocument.HIToolboxVersion">458.00</string> 9 9 <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> 10 10 <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> … … 13 13 <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> 14 14 <bool key="EncodedWithXMLCoder">YES</bool> 15 <integer value="17"/>16 15 <integer value="4"/> 17 <integer value="37"/>18 16 </object> 19 17 <object class="NSArray" key="IBDocument.PluginDependencies"> … … 40 38 <object class="IBUITableView" id="584496140"> 41 39 <reference key="NSNextResponder"/> 42 <int key="NSvFlags">274</int> 43 <string key="NSFrameSize">{320, 373}</string> 40 <int key="NSvFlags">301</int> 41 <object class="NSMutableArray" key="NSSubviews"> 42 <bool key="EncodedWithXMLCoder">YES</bool> 43 <object class="IBUIView" id="801181119"> 44 <reference key="NSNextResponder" ref="584496140"/> 45 <int key="NSvFlags">292</int> 46 <object class="NSMutableArray" key="NSSubviews"> 47 <bool key="EncodedWithXMLCoder">YES</bool> 48 <object class="IBUIToolbar" id="873782716"> 49 <reference key="NSNextResponder" ref="801181119"/> 50 <int key="NSvFlags">266</int> 51 <string key="NSFrameSize">{320, 44}</string> 52 <reference key="NSSuperview" ref="801181119"/> 53 <object class="NSColor" key="IBUIBackgroundColor"> 54 <int key="NSColorSpace">1</int> 55 <bytes key="NSRGB">MSAxIDEAA</bytes> 56 </object> 57 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 58 <object class="NSMutableArray" key="IBUIItems"> 59 <bool key="EncodedWithXMLCoder">YES</bool> 60 <object class="IBUIBarButtonItem" id="947532439"> 61 <string key="IBUITitle">Become Active Profile</string> 62 <int key="IBUIStyle">1</int> 63 <reference key="IBUIToolbar" ref="873782716"/> 64 </object> 65 <object class="IBUIBarButtonItem" id="798652086"> 66 <reference key="IBUIToolbar" ref="873782716"/> 67 <int key="IBUISystemItemIdentifier">5</int> 68 </object> 69 <object class="IBUIBarButtonItem" id="930083113"> 70 <string key="IBUITitle">Rename</string> 71 <int key="IBUIStyle">1</int> 72 <reference key="IBUIToolbar" ref="873782716"/> 73 </object> 74 </object> 75 <object class="NSColor" key="IBUITintColor"> 76 <int key="NSColorSpace">1</int> 77 <bytes key="NSRGB">MC4yODEwNjM5NjM0IDAuMTcxMTkwMDg0MiAwLjUAA</bytes> 78 </object> 79 </object> 80 </object> 81 <string key="NSFrameSize">{320, 44}</string> 82 <reference key="NSSuperview" ref="584496140"/> 83 <object class="NSColor" key="IBUIBackgroundColor"> 84 <int key="NSColorSpace">3</int> 85 <bytes key="NSWhite">MQA</bytes> 86 <object class="NSColorSpace" key="NSCustomColorSpace"> 87 <int key="NSID">2</int> 88 </object> 89 </object> 90 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 91 </object> 92 </object> 93 <string key="NSFrameSize">{320, 416}</string> 44 94 <reference key="NSSuperview"/> 45 95 <object class="NSColor" key="IBUIBackgroundColor"> 46 <int key="NSColorSpace"> 3</int>47 <bytes key="NS White">MQA</bytes>96 <int key="NSColorSpace">1</int> 97 <bytes key="NSRGB">MC41MDE5NjA4MTQgMCAwLjI1MDk4MDQwNwA</bytes> 48 98 </object> 49 99 <bool key="IBUIOpaque">NO</bool> 50 100 <bool key="IBUIClipsSubviews">YES</bool> 51 101 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 102 <int key="IBUIContentMode">5</int> 103 <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> 104 <object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics"> 105 <bool key="IBUIPrompted">NO</bool> 106 </object> 52 107 <bool key="IBUIBouncesZoom">NO</bool> 108 <int key="IBUIStyle">1</int> 53 109 <int key="IBUISeparatorStyle">1</int> 54 110 <int key="IBUISectionIndexMinimumDisplayRowCount">0</int> 111 <bool key="IBUIAllowsSelectionDuringEditing">YES</bool> 55 112 <bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool> 56 113 <float key="IBUIRowHeight">44</float> 57 <float key="IBUISectionHeaderHeight">22</float> 58 <float key="IBUISectionFooterHeight">22</float> 59 </object> 60 <object class="IBUIView" id="608739957"> 61 <reference key="NSNextResponder"/> 62 <int key="NSvFlags">292</int> 63 <object class="NSMutableArray" key="NSSubviews"> 64 <bool key="EncodedWithXMLCoder">YES</bool> 65 <object class="IBUIToolbar" id="873782716"> 66 <reference key="NSNextResponder" ref="608739957"/> 67 <int key="NSvFlags">266</int> 68 <string key="NSFrame">{{0, -1}, {320, 44}}</string> 69 <reference key="NSSuperview" ref="608739957"/> 70 <bool key="IBUIOpaque">NO</bool> 71 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 72 <object class="NSMutableArray" key="IBUIItems"> 73 <bool key="EncodedWithXMLCoder">YES</bool> 74 <object class="IBUIBarButtonItem" id="947532439"> 75 <string key="IBUITitle">Become Active Profile</string> 76 <int key="IBUIStyle">1</int> 77 <reference key="IBUIToolbar" ref="873782716"/> 78 </object> 79 <object class="IBUIBarButtonItem" id="798652086"> 80 <reference key="IBUIToolbar" ref="873782716"/> 81 <int key="IBUISystemItemIdentifier">5</int> 82 </object> 83 <object class="IBUIBarButtonItem" id="930083113"> 84 <string key="IBUITitle">Rename</string> 85 <int key="IBUIStyle">1</int> 86 <reference key="IBUIToolbar" ref="873782716"/> 87 </object> 88 </object> 89 <object class="NSColor" key="IBUITintColor"> 90 <int key="NSColorSpace">1</int> 91 <bytes key="NSRGB">MC4yNTA5ODA0MDcgMCAwLjUwMTk2MDgxNAA</bytes> 92 </object> 93 </object> 94 </object> 95 <string key="NSFrameSize">{320, 43}</string> 96 <reference key="NSSuperview"/> 97 <object class="NSColor" key="IBUIBackgroundColor"> 98 <int key="NSColorSpace">3</int> 99 <bytes key="NSWhite">MQA</bytes> 100 <object class="NSColorSpace" key="NSCustomColorSpace"> 101 <int key="NSID">2</int> 102 </object> 103 </object> 104 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 114 <float key="IBUISectionHeaderHeight">10</float> 115 <float key="IBUISectionFooterHeight">10</float> 116 <reference key="IBUITableHeaderView" ref="801181119"/> 105 117 </object> 106 118 <object class="IBUITableViewCell" id="48316267"> 107 < referencekey="NSNextResponder"/>119 <nil key="NSNextResponder"/> 108 120 <int key="NSvFlags">292</int> 109 121 <object class="NSMutableArray" key="NSSubviews"> … … 116 128 <object class="IBUILabel" id="839931344"> 117 129 <reference key="NSNextResponder" ref="156246093"/> 118 <int key="NSvFlags">2 92</int>119 <string key="NSFrame">{{20, 0}, {280, 43}}</string>130 <int key="NSvFlags">274</int> 131 <string key="NSFrame">{{20, 0}, {280, 78}}</string> 120 132 <reference key="NSSuperview" ref="156246093"/> 121 133 <object class="NSColor" key="IBUIBackgroundColor" id="770560937"> … … 139 151 <int key="IBUIBaselineAdjustment">1</int> 140 152 <float key="IBUIMinimumFontSize">12</float> 141 <int key="IBUINumberOfLines"> 3</int>153 <int key="IBUINumberOfLines">4</int> 142 154 <int key="IBUILineBreakMode">0</int> 143 155 </object> 144 156 </object> 145 <string key="NSFrameSize">{300, 43}</string>157 <string key="NSFrameSize">{300, 78}</string> 146 158 <reference key="NSSuperview" ref="48316267"/> 147 159 <reference key="IBUIBackgroundColor" ref="770560937"/> … … 152 164 </object> 153 165 </object> 154 <string key="NSFrameSize">{320, 44}</string> 155 <reference key="NSSuperview"/> 166 <string key="NSFrame">{{0, 191}, {320, 79}}</string> 156 167 <object class="NSColor" key="IBUIBackgroundColor"> 157 168 <int key="NSColorSpace">1</int> 158 <bytes key="NSRGB">MSAxIDE gMAA</bytes>169 <bytes key="NSRGB">MSAxIDEAA</bytes> 159 170 </object> 160 171 <bool key="IBUIOpaque">NO</bool> … … 174 185 <object class="IBConnectionRecord"> 175 186 <object class="IBCocoaTouchOutletConnection" key="connection"> 176 <string key="label">tableHeaderView</string>177 <reference key="source" ref="372490531"/>178 <reference key="destination" ref="608739957"/>179 </object>180 <int key="connectionID">18</int>181 </object>182 <object class="IBConnectionRecord">183 <object class="IBCocoaTouchOutletConnection" key="connection">184 187 <string key="label">view</string> 185 188 <reference key="source" ref="372490531"/> … … 282 285 </object> 283 286 <object class="IBObjectRecord"> 284 <int key="objectID"> 17</int>285 <reference key="object" ref=" 608739957"/>287 <int key="objectID">37</int> 288 <reference key="object" ref="48316267"/> 286 289 <object class="NSMutableArray" key="children"> 287 290 <bool key="EncodedWithXMLCoder">YES</bool> 291 <reference ref="839931344"/> 292 </object> 293 <reference key="parent" ref="0"/> 294 </object> 295 <object class="IBObjectRecord"> 296 <int key="objectID">39</int> 297 <reference key="object" ref="839931344"/> 298 <reference key="parent" ref="48316267"/> 299 </object> 300 <object class="IBObjectRecord"> 301 <int key="objectID">4</int> 302 <reference key="object" ref="584496140"/> 303 <object class="NSMutableArray" key="children"> 304 <bool key="EncodedWithXMLCoder">YES</bool> 305 <reference ref="801181119"/> 306 </object> 307 <reference key="parent" ref="0"/> 308 </object> 309 <object class="IBObjectRecord"> 310 <int key="objectID">44</int> 311 <reference key="object" ref="801181119"/> 312 <object class="NSMutableArray" key="children"> 313 <bool key="EncodedWithXMLCoder">YES</bool> 288 314 <reference ref="873782716"/> 289 315 </object> 290 <reference key="parent" ref="0"/> 291 <string key="objectName">Table Header View</string> 316 <reference key="parent" ref="584496140"/> 292 317 </object> 293 318 <object class="IBObjectRecord"> … … 300 325 <reference ref="930083113"/> 301 326 </object> 302 <reference key="parent" ref=" 608739957"/>327 <reference key="parent" ref="801181119"/> 303 328 <string key="objectName">Profile Edit Toolbar</string> 304 329 </object> … … 317 342 <reference key="object" ref="930083113"/> 318 343 <reference key="parent" ref="873782716"/> 319 </object>320 <object class="IBObjectRecord">321 <int key="objectID">4</int>322 <reference key="object" ref="584496140"/>323 <reference key="parent" ref="0"/>324 </object>325 <object class="IBObjectRecord">326 <int key="objectID">37</int>327 <reference key="object" ref="48316267"/>328 <object class="NSMutableArray" key="children">329 <bool key="EncodedWithXMLCoder">YES</bool>330 <reference ref="839931344"/>331 </object>332 <reference key="parent" ref="0"/>333 </object>334 <object class="IBObjectRecord">335 <int key="objectID">39</int>336 <reference key="object" ref="839931344"/>337 <reference key="parent" ref="48316267"/>338 344 </object> 339 345 </object> … … 346 352 <string>-2.CustomClassName</string> 347 353 <string>10.IBPluginDependency</string> 348 <string>17.IBEditorWindowLastContentRect</string>349 <string>17.IBPluginDependency</string>350 354 <string>37.IBEditorWindowLastContentRect</string> 351 355 <string>37.IBPluginDependency</string> … … 353 357 <string>4.IBEditorWindowLastContentRect</string> 354 358 <string>4.IBPluginDependency</string> 359 <string>44.IBEditorWindowLastContentRect</string> 360 <string>44.IBPluginDependency</string> 355 361 <string>5.IBPluginDependency</string> 356 362 <string>8.IBPluginDependency</string> … … 362 368 <string>UIResponder</string> 363 369 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 364 <string>{{277, 662}, {320, 43}}</string> 365 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 366 <string>{{519, 1375}, {320, 44}}</string> 370 <string>{{519, 1340}, {320, 79}}</string> 367 371 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 368 372 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 369 <string>{{42, 426}, {320, 373}}</string> 373 <string>{{678, 682}, {320, 480}}</string> 374 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 375 <string>{{629, 1088}, {320, 44}}</string> 370 376 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 371 377 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> … … 390 396 </object> 391 397 <nil key="sourceID"/> 392 <int key="maxID">4 2</int>398 <int key="maxID">44</int> 393 399 </object> 394 400 <object class="IBClassDescriber" key="IBDocument.Classes"> … … 410 416 <bool key="EncodedWithXMLCoder">YES</bool> 411 417 <string>didClickActivate:</string> 418 <string>didClickCancel:</string> 412 419 <string>didClickRename:</string> 413 420 </object> 414 421 <object class="NSMutableArray" key="dict.values"> 415 422 <bool key="EncodedWithXMLCoder">YES</bool> 423 <string>id</string> 416 424 <string>id</string> 417 425 <string>id</string> -
apps/iphone/my.tel/trunk/offlineSampleData.plist
r589 r601 4 4 <dict> 5 5 <key>getrecordlist</key> 6 <string>{"actionMessages":null,"date":null,"domainId":7,"recordList":[{"apiId":4377,"editable":true,"global":false,"groups":[],"l abel":"current","locations":["x-mobile"],"profiles":[],"serviceKeys":["voice"],"terminal":true,"value":"+12155551212"},{"apiId":4255,"editable":true,"global":false,"groups":[],"label":"Current","locations":["x-mobile"],"profiles":[7],"serviceKeys":["voice"],"terminal":true,"value":"+9610123456"},{"apiId":1415,"editable":false,"global":true,"groups":[],"label":null,"locations":null,"profiles":[],"serviceKeys":null,"terminal":false,"value":"social.john.tel."}],"success":true}6 <string>{"actionMessages":null,"date":null,"domainId":7,"recordList":[{"apiId":4377,"editable":true,"global":false,"groups":[],"longLabel":"current","locations":["x-mobile"],"profiles":[],"serviceKeys":["voice"],"terminal":true,"value":"+12155551212"},{"apiId":4255,"editable":true,"global":false,"groups":[],"label":"Current","locations":["x-mobile"],"profiles":[7],"serviceKeys":["voice"],"terminal":true,"value":"+9610123456"},{"apiId":1415,"editable":false,"global":true,"groups":[],"label":null,"locations":null,"profiles":[],"serviceKeys":null,"terminal":false,"value":"social.john.tel."}],"success":true} 7 7 </string> 8 8 <key>storerecord</key>








