diff options
author | mltownsend <mltownsend@gmail.com> | 2009-01-18 23:01:15 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2009-01-18 23:01:15 +0000 |
commit | 27f62e777d01771c88c70097dbab5bd33efc65ab (patch) | |
tree | f1490bf9efc1c62570b0e8b45953b4320fa008ca /Source/TableDocument.m | |
parent | 284402d7fc9e33b47d26a795c33f4384a1eabe68 (diff) | |
download | sequelpro-27f62e777d01771c88c70097dbab5bd33efc65ab.tar.gz sequelpro-27f62e777d01771c88c70097dbab5bd33efc65ab.tar.bz2 sequelpro-27f62e777d01771c88c70097dbab5bd33efc65ab.zip |
Added the print method to go from. Sort of works by printing the literal NSView that is currently selected.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 9b5ce8e0..7c41a049 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -84,6 +84,14 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; } +- (NSPrintOperation *)printOperationWithSettings:(NSDictionary *)ps error:(NSError **)e +{ + + NSPrintInfo *printInfo = [self printInfo]; + NSPrintOperation *printOp = [NSPrintOperation printOperationWithView:[[tableTabView selectedTabViewItem] view] printInfo:printInfo]; + return printOp; +} + - (CMMCPConnection *)sharedConnection { |