Ticket #37974: patch-MPActionsController.m.diff
File patch-MPActionsController.m.diff, 2.0 KB (added by IanWadham, 12 years ago) |
---|
-
MPActionsController.m
old new 43 43 if (![checkboxes[i] isDefault]) 44 44 { 45 45 [variants addObject: [[port valueForKey:@"variants"] objectAtIndex:i]]; 46 [variants addObject: [NSString stringWithString:@"+"]];46 [variants addObject: @"+"]; 47 47 } 48 48 49 49 [variantsString appendString:@"+"]; … … 54 54 //If the checkbox is unchecked, we need to check if it is a default_variant, and if so, add it in the list with '-' 55 55 //in the name, to let macports know that we wish to not use it 56 56 [variants addObject: [[port valueForKey:@"variants"] objectAtIndex:i]]; 57 [variants addObject: [NSString stringWithString:@"-"]];57 [variants addObject: @"-"]; 58 58 [variantsString appendString:@"-"]; 59 59 [variantsString appendString:[[port valueForKey:@"variants"] objectAtIndex:i]]; 60 60 } … … 99 99 [port checkDefaults]; 100 100 NSMutableArray *defaultVariants= [port objectForKey:@"default_variants"]; 101 101 102 NSLog(@"Default variants count: % i",[defaultVariants count]);102 NSLog(@"Default variants count: %li", (unsigned long)[defaultVariants count]); 103 103 for(UInt i=0; i<[[port valueForKey:@"variants"] count];i++) 104 104 { 105 105 //If the variant is included in the default_variants, then check it. Otherwise leave it unchecked … … 355 355 NSLog(@"Starting Queue"); 356 356 NSUInteger index; 357 357 index = [queueArray count]-1; 358 NSLog(@"Array Size is: % u",index);359 NSUInteger i;358 NSLog(@"Array Size is: %lu", (unsigned long)index); 359 // NSUInteger i; 360 360 [queue setSelectionIndex: 0]; 361 361 queueCounter=0; 362 362 … … 376 376 NSUInteger index=queueCounter; 377 377 if([queueArray count]>index) 378 378 { 379 NSLog(@"Advancing Queue for % u",index);379 NSLog(@"Advancing Queue for %lu", (unsigned long)index); 380 380 //index = [queue selectionIndex]; 381 NSLog(@"Index before: % u",index);381 NSLog(@"Index before: %lu", (unsigned long)index); 382 382 383 383 //We select each object from the array 384 384 [queue setSelectionIndex:index];