Changeset 626
- Timestamp:
- 01/11/10 11:17:57 (2 months ago)
- Location:
- apps/iphone
- Files:
-
- 14 modified
-
my.tel/trunk/Classes/AccountEditController.m (modified) (3 diffs)
-
my.tel/trunk/Classes/AccountViewController.m (modified) (1 diff)
-
my.tel/trunk/Classes/API Classes/JsonConnection.m (modified) (3 diffs)
-
my.tel/trunk/Classes/DomainViewController.m (modified) (3 diffs)
-
my.tel/trunk/Classes/GroupFriendsController.m (modified) (2 diffs)
-
my.tel/trunk/Classes/GroupsViewController.m (modified) (2 diffs)
-
my.tel/trunk/Classes/KeywordEditController.h (modified) (1 diff)
-
my.tel/trunk/Classes/KeywordEditController.m (modified) (1 diff)
-
my.tel/trunk/Classes/MyCLController.m (modified) (1 diff)
-
my.tel/trunk/Classes/ProfileRecordsViewController.h (modified) (1 diff)
-
my.tel/trunk/Classes/ProfileRecordsViewController.m (modified) (1 diff)
-
my.tel/trunk/Classes/ProfileViewController.m (modified) (2 diffs)
-
my.tel/trunk/Classes/RootViewController.m (modified) (1 diff)
-
superbook/trunk/DotTel_SDK/Classes/DnsResolver.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/AccountEditController.m
r612 r626 180 180 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 181 181 182 TextFieldCell *cell ;182 TextFieldCell *cell = nil; 183 183 switch (indexPath.section) { 184 184 case 0: … … 254 254 // show an activity indicator, as we might get the api root url from the network, which may take time 255 255 UIBarButtonItem *origButton = [self.navigationItem.rightBarButtonItem retain]; 256 UIActivityIndicatorView *uiAIV = [[ UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];256 UIActivityIndicatorView *uiAIV = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray] autorelease]; 257 257 uiAIV.hidesWhenStopped = YES; 258 258 self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:uiAIV] autorelease]; … … 284 284 // try to autoprovision apiRootUrl 285 285 [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; 286 NSMutableArray *naptrArray = [ [NSMutableArray arrayWithCapacity:1] retain];286 NSMutableArray *naptrArray = [NSMutableArray arrayWithCapacity:1]; 287 287 NSString *autoProvisionDomain = [@"_https._nsp._apps." stringByAppendingString:aDomain]; 288 288 DnsResolver *resolver =[[DnsResolver alloc] init]; -
apps/iphone/my.tel/trunk/Classes/AccountViewController.m
r612 r626 244 244 // Delete the row from the data source 245 245 self; 246 alert = [AlertRenameView alloc]; 247 [[alert initWithTitle:@"Confirm Deletion" 246 alert = [[AlertRenameView alloc] initWithTitle:@"Confirm Deletion" 248 247 message:@"Are you sure you want to remove this account?" 249 248 delegate:self 250 249 cancelButtonTitle:@"Cancel" 251 otherButtonTitles:@"Remove", nil] autorelease];250 otherButtonTitles:@"Remove", nil]; 252 251 alert.alertId = [NSNumber numberWithInt:0]; 253 252 alert.refObject = self; 254 253 ((UITextField *)alert.uiStringField).hidden = YES; 255 254 [alert show]; 255 [alert release]; 256 256 break; 257 257 default: -
apps/iphone/my.tel/trunk/Classes/API Classes/JsonConnection.m
r612 r626 129 129 NSLog(@"Connection error for URL: %@", [connectionUrl description]); 130 130 #endif 131 UIAlertView *alert = [UIAlertView alloc]; 132 [[alert initWithTitle:@"Error in connection" 131 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error in connection" 133 132 message:@"Couldn't create a connection" 134 133 delegate:self 135 134 cancelButtonTitle:nil 136 otherButtonTitles:@"OK", nil] autorelease];135 otherButtonTitles:@"OK", nil]; 137 136 [alert show]; 137 [alert release]; 138 138 } 139 139 return NULL; … … 156 156 NSLog(@"Connection error for URL: %@", [connectionUrl description]); 157 157 #endif 158 UIAlertView *alert = [UIAlertView alloc]; 159 [[alert initWithTitle:@"Error in connection" 158 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error in connection" 160 159 message:[error localizedDescription] 161 160 delegate:self 162 161 cancelButtonTitle:nil 163 otherButtonTitles:@"Quit", nil] autorelease];162 otherButtonTitles:@"Quit", nil]; 164 163 [alert show]; 164 [alert release]; 165 165 } 166 166 NSString *theJSONResult; … … 253 253 254 254 + (void)throwJsonErrorAlert:(NSDictionary *)someJson { 255 UIAlertView *alert = [UIAlertView alloc]; 256 [[alert initWithTitle:@"Error" 255 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" 257 256 message:[[(NSArray *)[someJson valueForKey:@"actionErrors"] objectAtIndex:0] description] 258 257 delegate:self 259 258 cancelButtonTitle:nil 260 otherButtonTitles:@"OK", nil] autorelease];259 otherButtonTitles:@"OK", nil]; 261 260 [alert show]; 261 [alert release]; 262 262 } 263 263 -
apps/iphone/my.tel/trunk/Classes/DomainViewController.m
r612 r626 332 332 // Delete the row from the data source 333 333 if (indexPath.section == [self sectionForIndex:kKDomainTableViewSectionFolders]) { 334 AlertRenameView *alert = [AlertRenameView alloc]; 335 [[alert initWithTitle:@"Confirm Deletion" 334 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"Confirm Deletion" 336 335 message:@"All information contained in this folder will be permanently deleted!" 337 336 delegate:self 338 337 cancelButtonTitle:@"Cancel" 339 otherButtonTitles:@"Delete", nil] autorelease];338 otherButtonTitles:@"Delete", nil]; 340 339 alert.alertId = [NSNumber numberWithInt:kKDomainTableViewAlertDelete]; 341 340 alert.refObject = indexPath; 342 341 ((UITextField *)alert.uiStringField).hidden = YES; 343 342 [alert show]; 343 [alert release]; 344 344 } 345 345 } else if (editingStyle == UITableViewCellEditingStyleInsert) { 346 346 if (indexPath.section == [self sectionForIndex:kKDomainTableViewSectionAddFolder]) { 347 AlertRenameView *alert = [AlertRenameView alloc]; 348 [[alert initWithTitle:@"New Folder Name" 347 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"New Folder Name" 349 348 message:@"\n\n" 350 349 delegate:self 351 350 cancelButtonTitle:@"Cancel" 352 otherButtonTitles:@"OK", nil] autorelease];351 otherButtonTitles:@"OK", nil]; 353 352 alert.alertId = [NSNumber numberWithInt:kKDomainTableViewAlertAdd]; 354 353 alert.uiStringField.text = @""; 355 354 [alert show]; 355 [alert release]; 356 356 } 357 357 } … … 626 626 627 627 - (void)dataDidChangeInController:(UIViewController *)controller { 628 UITableViewCell *theCell ;628 UITableViewCell *theCell = nil; 629 629 if ([controller isMemberOfClass:[RecordViewController class]]) { 630 630 NSIndexPath *thePath = [NSIndexPath indexPathForRow:0 inSection:[self sectionForIndex:kKDomainTableViewSectionInfo]]; … … 655 655 theCell.detailTextLabel.text = [NSString stringWithFormat:@"(%d)", [((GroupsViewController *)controller).groupsArray count]]; 656 656 } 657 658 [theCell setNeedsLayout]; 657 if (theCell != nil) { 658 [theCell setNeedsLayout]; 659 [theCell setNeedsDisplay]; 660 } 659 661 } 660 662 -
apps/iphone/my.tel/trunk/Classes/GroupFriendsController.m
r623 r626 80 80 [conn setPayload:requestData]; 81 81 [conn performLookup:TRUE]; 82 [requestData release]; 82 83 [newName release]; 83 84 } … … 90 91 91 92 - (IBAction)didClickRename:(id)sender { 92 AlertRenameView *alert = [AlertRenameView alloc]; 93 [[alert initWithTitle:@"Rename Group" 93 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"Rename Group" 94 94 message:@"\n\n" 95 95 delegate:self 96 96 cancelButtonTitle:@"Cancel" 97 otherButtonTitles:@"OK", nil] autorelease];97 otherButtonTitles:@"OK", nil]; 98 98 alert.alertId = [NSNumber numberWithInt:kAlertRenameId]; 99 99 alert.uiStringField.text = [theGroup objectForKey:@"name"]; 100 100 [alert show]; 101 [alert release]; 101 102 } 102 103 -
apps/iphone/my.tel/trunk/Classes/GroupsViewController.m
r623 r626 156 156 157 157 - (IBAction)didClickAdd:(id)sender { 158 AlertRenameView *alert = [AlertRenameView alloc]; 159 [[alert initWithTitle:@"New Group Name" 158 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"New Group Name" 160 159 message:@"\n\n" 161 160 delegate:self 162 161 cancelButtonTitle:@"Cancel" 163 otherButtonTitles:@"OK", nil] autorelease];162 otherButtonTitles:@"OK", nil]; 164 163 alert.alertId = [NSNumber numberWithInt:kAlertAddId]; 165 164 alert.uiStringField.text = @""; 166 165 [alert show]; 166 [alert release]; 167 167 } 168 168 … … 183 183 184 184 [conn setPayload:requestData]; 185 [aGroup release]; 185 186 NSDictionary *parsedJson = [conn performLookup:FALSE]; 186 187 [requestData release]; -
apps/iphone/my.tel/trunk/Classes/KeywordEditController.h
r622 r626 39 39 id <KeywordEditDelegate> delegate; 40 40 @private 41 NSMutableArray *tArrKey;42 NSMutableArray *tArrVal;43 41 UIBarButtonItem *buttonSave; 44 42 BOOL isEditing; -
apps/iphone/my.tel/trunk/Classes/KeywordEditController.m
r622 r626 258 258 259 259 // Store the record 260 UIActivityIndicatorView *uiAIV = [[ UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];260 UIActivityIndicatorView *uiAIV = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray] autorelease]; 261 261 self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:uiAIV] autorelease]; 262 262 // yield to runloop for the activity indicator to display -
apps/iphone/my.tel/trunk/Classes/MyCLController.m
r593 r626 109 109 110 110 // TODO: Send the delegate the alert? 111 if (shouldQuit) { 112 // do nothing 113 } 111 114 } 112 115 -
apps/iphone/my.tel/trunk/Classes/ProfileRecordsViewController.h
r618 r626 44 44 id <TelControllerDelegate> delegate; 45 45 @private 46 RecordEditController *editController;47 46 NSUInteger buttonEditCount; 48 47 BOOL didPreload; -
apps/iphone/my.tel/trunk/Classes/ProfileRecordsViewController.m
r618 r626 331 331 332 332 - (IBAction)didClickRename:(id)sender { 333 AlertRenameView *alert = [AlertRenameView alloc]; 334 [[alert initWithTitle:@"Edit Profile Name" 333 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"Edit Profile Name" 335 334 message:@"\n\n" 336 335 delegate:self 337 336 cancelButtonTitle:@"Cancel" 338 otherButtonTitles:@"OK", nil] autorelease];337 otherButtonTitles:@"OK", nil]; 339 338 alert.alertId = [NSNumber numberWithInt:0]; 340 339 alert.uiStringField.text = [self.theProfile objectForKey:@"name"]; 341 340 [alert show]; 341 [alert release]; 342 342 } 343 343 -
apps/iphone/my.tel/trunk/Classes/ProfileViewController.m
r624 r626 155 155 156 156 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { 157 NSDictionary *aProf = [ [profilesArray objectAtIndex:indexPath.row] retain];157 NSDictionary *aProf = [profilesArray objectAtIndex:indexPath.row]; 158 158 if ([[aProf objectForKey:@"isDefault"] integerValue] == 1) { 159 159 return UITableViewCellEditingStyleNone; … … 207 207 208 208 - (IBAction)didClickAdd:(id)sender { 209 AlertRenameView *alert = [AlertRenameView alloc]; 210 [[alert initWithTitle:@"New Profile Name" 209 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"New Profile Name" 211 210 message:@"\n\n" 212 211 delegate:self 213 212 cancelButtonTitle:@"Cancel" 214 otherButtonTitles:@"OK", nil] autorelease];213 otherButtonTitles:@"OK", nil]; 215 214 alert.alertId = [NSNumber numberWithInt:0]; 216 215 alert.uiStringField.text = @""; 217 216 [alert show]; 217 [alert release]; 218 218 } 219 219 -
apps/iphone/my.tel/trunk/Classes/RootViewController.m
r621 r626 324 324 if (editingStyle == UITableViewCellEditingStyleDelete) { 325 325 // Delete the row from the data source 326 AlertRenameView *alert = [AlertRenameView alloc]; 327 [[alert initWithTitle:@"Confirm Deletion" 326 AlertRenameView *alert = [[AlertRenameView alloc] initWithTitle:@"Confirm Deletion" 328 327 message:@"Are you sure you want to remove this account?" 329 328 delegate:self 330 329 cancelButtonTitle:@"Cancel" 331 otherButtonTitles:@"Remove", nil] autorelease];330 otherButtonTitles:@"Remove", nil]; 332 331 alert.alertId = [NSNumber numberWithInt:0]; 333 332 alert.refObject = indexPath; 334 333 ((UITextField *)alert.uiStringField).hidden = YES; 335 334 [alert show]; 335 [alert release]; 336 336 } 337 337 } -
apps/iphone/superbook/trunk/DotTel_SDK/Classes/DnsResolver.m
r546 r626 53 53 NSLog(@"Domain %@: Retrieving NAPTR Records", domain); 54 54 #endif 55 [naptrArray retain]; 55 56 ldns_rr_list *naptrs = [self retrieveResourceRecordsOfType:LDNS_RR_TYPE_NAPTR fromDomain:domain withError:error]; 56 57 if (!naptrs) { 58 [naptrArray release]; 57 59 return 0; 58 60 } … … 74 76 ldns_rr_list_deep_free(naptrs); 75 77 [lookupDate release]; 76 78 [naptrArray release]; 77 79 return count; 78 80








