Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 55951d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/SPTableRelations.m
Expand Up @@ -53,6 +53,7 @@ @interface SPTableRelations ()

- (void)_refreshRelationDataForcingCacheRefresh:(BOOL)clearAllCaches;
- (void)_updateAvailableTableColumns;
- (void)addAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;

@end

Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 55951d0

Please sign in to comment.