Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 944 Bytes
//
// MarkownDocument.h
// Readown
//
// Created by Hong, MinHee on 08. 04. 09.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@class WebView;
@interface MarkdownDocument : NSDocument
{
NSString *text;
NSURL* baseURL;
NSDate *lastModified;
IBOutlet WebView *webView;
}
@property (retain) IBOutlet WebView* webView;
- (BOOL)readFromURL:(NSURL *)url ofType:(NSString *)type error:(NSError **)outError;
- (void)awakeFromNib;
- (void)loadFromBaseURL;
- (void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener;
- (void)webView:(WebView *)sender decidePolicyForNewWindowAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request newFrameName:(NSString *)frameName decisionListener:(id<WebPolicyDecisionListener>)listener;
- (IBAction)reload:(id)sender;
@end