aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-29 03:09:10 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-29 03:09:10 +0000
commit72258028821c732892fd4ee00149a9afece290e4 (patch)
tree42189ef0edd2a59c2d2a6e50382b50ebb16e2494 /Source/SPExportController.m
parent495e8fffa8c2455aaee97c78445feb71253dcd61 (diff)
downloadsequelpro-72258028821c732892fd4ee00149a9afece290e4.tar.gz
sequelpro-72258028821c732892fd4ee00149a9afece290e4.tar.bz2
sequelpro-72258028821c732892fd4ee00149a9afece290e4.zip
Add the first classes of the new export architecture. See the description at the top of SPExporter.h for more information.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index 4e83d818..f89e727d 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -63,13 +63,17 @@
- (IBAction)closeSheet:(id)sender
{
- [NSApp endSheet:exportWindow];
- [NSApp stopModalWithCode:[sender tag]];
+ [NSApp endSheet:exportWindow returnCode:[sender tag]];
+ [exportWindow orderOut:self];
}
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
- [sheet orderOut:self];
+ // Perform the export
+ if (returnCode == NSOKButton) {
+
+ // First determine what type of export the user selected
+ }
}
#pragma mark -
@@ -159,10 +163,9 @@
- (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
{
- NSArray *array = [toolbar items];
NSMutableArray *items = [NSMutableArray arrayWithCapacity:6];
- for (NSToolbarItem *item in array)
+ for (NSToolbarItem *item in [toolbar items])
{
[items addObject:[item itemIdentifier]];
}
@@ -176,6 +179,7 @@
- (void)dealloc
{
[tables release], tables = nil;
+
[super dealloc];
}