File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -985,11 +985,13 @@ - (void) loadTableValues
985
985
// Update the rows count as necessary
986
986
[self updateNumberOfRows];
987
987
988
- // Set the filter text
989
- [self updateCountText];
990
-
991
- // Update pagination
992
- [[self onMainThread] updatePaginationState];
988
+ SPMainQSync(^{
989
+ // Set the filter text
990
+ [self updateCountText];
991
+
992
+ // Update pagination
993
+ [self updatePaginationState];
994
+ });
993
995
994
996
// Retrieve and cache the column definitions for editing views
995
997
if (cqColumnDefinition) [cqColumnDefinition release];
@@ -1163,6 +1165,8 @@ - (NSString *)tableFilterString
1163
1165
1164
1166
/**
1165
1167
* Update the table count/selection text
1168
+ *
1169
+ * MUST BE CALLED ON THE UI THREAD!
1166
1170
*/
1167
1171
- (void)updateCountText
1168
1172
{
@@ -1208,7 +1212,7 @@ - (void)updateCountText
1208
1212
}
1209
1213
1210
1214
// If rows are selected, append selection count
1211
- NSInteger selectedRows = [[ tableContentView onMainThread] numberOfSelectedRows]; // -numberOfSelectedRows is a UI method!
1215
+ NSInteger selectedRows = [tableContentView numberOfSelectedRows]; // -numberOfSelectedRows is a UI method!
1212
1216
if (selectedRows > 0) {
1213
1217
[countString appendString:@"; "];
1214
1218
if (selectedRows == 1)
@@ -1219,7 +1223,7 @@ - (void)updateCountText
1219
1223
}
1220
1224
1221
1225
#ifndef SP_CODA
1222
- [[ countText onMainThread] setStringValue:countString];
1226
+ [countText setStringValue:countString];
1223
1227
#endif
1224
1228
}
1225
1229
You can’t perform that action at this time.
0 commit comments