Permalink
Browse files

Silly me, tried to use a method that was newer than 10.6…

  • Loading branch information...
dmoagx committed Apr 16, 2015
1 parent 734d3a9 commit 55951d00cde44cfc654a2a6cb97e941eca2eb70f
Showing with 7 additions and 3 deletions.
  1. +7 −3 Source/SPTableRelations.m
View
@@ -53,6 +53,7 @@ @interface SPTableRelations ()
- (void)_refreshRelationDataForcingCacheRefresh:(BOOL)clearAllCaches;
- (void)_updateAvailableTableColumns;
- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
@end
@@ -215,15 +216,18 @@ - (IBAction)confirmAddRelation:(id)sender
}
}
[[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] completionHandler:^(NSModalResponse returnCode) {
[self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
}];
[[alert onMainThread] beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:@selector(addAlertDidEnd:returnCode:contextInfo:) contextInfo:NULL];
}
else {
[self _refreshRelationDataForcingCacheRefresh:YES];
}
}
- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
[self performSelector:@selector(openRelationSheet:) withObject:self afterDelay:0.0];
}
/**
* Updates the available columns when the user selects a table.
*/

0 comments on commit 55951d0

Please sign in to comment.