|
1 | 1 | /* |
2 | | - Copyright (c) 2003-2024, Sveinbjorn Thordarson <sveinbjorn@sveinbjorn.org> |
| 2 | + Copyright (c) 2003-2025, Sveinbjorn Thordarson <sveinbjorn@sveinbjorn.org> |
3 | 3 | All rights reserved. |
4 | 4 |
|
5 | 5 | Redistribution and use in source and binary forms, with or without modification, |
@@ -133,15 +133,15 @@ - (void)updateButtonStatus { |
133 | 133 | } |
134 | 134 |
|
135 | 135 | - (void)updateFileSizeField { |
136 | | - //if there are no items |
| 136 | + // If there are no items |
137 | 137 | if ([files count] == 0) { |
138 | 138 | _totalSizeOfFiles = 0; |
139 | 139 | [bundleSizeTextField setStringValue:@""]; |
140 | 140 | [[NSNotificationCenter defaultCenter] postNotificationName:PLATYPUS_APP_SIZE_CHANGED_NOTIFICATION object:nil]; |
141 | 141 | return; |
142 | 142 | } |
143 | 143 |
|
144 | | - //otherwise, loop through all files, calculate size in a separate queue |
| 144 | + // Otherwise, loop through all files, calculate size in a separate queue |
145 | 145 | [bundleSizeTextField setStringValue:@"Calculating size..."]; |
146 | 146 |
|
147 | 147 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^(void){ |
@@ -300,8 +300,8 @@ - (void)copyFilenamesToPasteboard:(BOOL)basenameOnly { |
300 | 300 | } |
301 | 301 | } |
302 | 302 |
|
303 | | - [[NSPasteboard generalPasteboard] declareTypes:@[NSStringPboardType] owner:self]; |
304 | | - [[NSPasteboard generalPasteboard] setString:copyStr forType:NSStringPboardType]; |
| 303 | + [[NSPasteboard generalPasteboard] declareTypes:@[NSPasteboardTypeString] owner:self]; |
| 304 | + [[NSPasteboard generalPasteboard] setString:copyStr forType:NSPasteboardTypeString]; |
305 | 305 | } |
306 | 306 |
|
307 | 307 | - (IBAction)addFilesToList:(id)sender { |
@@ -373,7 +373,7 @@ - (IBAction)removeSelectedFiles:(id)sender { |
373 | 373 | } |
374 | 374 | } |
375 | 375 | if ([tableView numberOfRows]) { |
376 | | - NSUInteger rowToSelect = [selectedItems firstIndex] - 1; |
| 376 | + NSInteger rowToSelect = [selectedItems firstIndex] - 1; |
377 | 377 | [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:rowToSelect] byExtendingSelection:NO]; |
378 | 378 | } |
379 | 379 |
|
|
0 commit comments