Skip to content

Commit 55951d0

Browse files
committed
Silly me, tried to use a method that was newer than 10.6…
1 parent 734d3a9 commit 55951d0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Source/SPTableRelations.m

+7-3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ @interface SPTableRelations ()
5353

5454
- (void)_refreshRelationDataForcingCacheRefresh:(BOOL)clearAllCaches;
5555
- (void)_updateAvailableTableColumns;
56+
- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
5657

5758
@end
5859

@@ -215,15 +216,18 @@ - (IBAction)confirmAddRelation:(id)sender
215216
}
216217
}
217218

218-
[[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] completionHandler:^(NSModalResponse returnCode) {
219-
[self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
220-
}];
219+
[[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:@selector(addAlertDidEnd:returnCode:contextInfo:) contextInfo:NULL];
221220
}
222221
else {
223222
[self _refreshRelationDataForcingCacheRefresh:YES];
224223
}
225224
}
226225

226+
- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
227+
{
228+
[self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
229+
}
230+
227231
/**
228232
* Updates the available columns when the user selects a table.
229233
*/

0 commit comments

Comments
 (0)