diff options
author | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
commit | 2483cd22f74239d2a06c83f1c5d9a25eaab44a7c (patch) | |
tree | 2a8a527b3f418c257e65156efb582f818324c812 /Source/SPBundleHTMLOutputController.m | |
parent | b7bd2ae9a683652920a6c772eadeca2bac1e7b91 (diff) | |
download | sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.gz sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.bz2 sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.zip |
Bring outline view branch up to date with trunk (r3471:r3481).
Diffstat (limited to 'Source/SPBundleHTMLOutputController.m')
-rw-r--r-- | Source/SPBundleHTMLOutputController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m index e49cce11..1b37be2e 100644 --- a/Source/SPBundleHTMLOutputController.m +++ b/Source/SPBundleHTMLOutputController.m @@ -185,7 +185,7 @@ if (returnCode == NSOKButton) { NSString *sourceCode = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('html')[0].outerHTML"]; NSError *err = nil; - [sourceCode writeToFile:[sheet filename] + [sourceCode writeToURL:[sheet URL] atomically:YES encoding:NSUTF8StringEncoding error:&err]; @@ -265,7 +265,7 @@ { NSSavePanel *panel = [NSSavePanel savePanel]; - [panel setRequiredFileType:@"html"]; + [panel setAllowedFileTypes:[NSArray arrayWithObject:@"html"]]; [panel setExtensionHidden:NO]; [panel setAllowsOtherFileTypes:YES]; |