Add loadHTMLString: API to HTML output view

This replaces the current HTML shown without adding to the history and will preserve scroll position.
This commit is contained in:
Allan Odgaard
2014-03-29 14:28:27 +07:00
parent a404daecce
commit b23163476f
3 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ extern NSString* const kCommandRunnerURLScheme;
@interface OakHTMLOutputView : NSView
- (void)loadRequest:(NSURLRequest*)aRequest environment:(std::map<std::string, std::string> const&)anEnvironment autoScrolls:(BOOL)flag;
- (void)stopLoading;
- (void)loadHTMLString:(NSString*)someHTML;
@property (nonatomic, readonly) BOOL runningCommand;