-
Notifications
You must be signed in to change notification settings - Fork 5
/
MCTextFieldWebView.h
44 lines (30 loc) · 1.1 KB
/
MCTextFieldWebView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// MCTextFieldWebView.h
// BackToTheMac
//
// Created by Drew McCormack on 15/11/10.
// Copyright 2010 The Mental Faculty. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@class MCTextFieldWebView;
@protocol MCTextFieldWebViewDelegate <NSObject>
@optional
-(void)textFieldWebViewHTMLContentDidChange:(MCTextFieldWebView *)webView;
-(void)textFieldWebViewDidBeginEditing:(MCTextFieldWebView *)webView;
-(void)textFieldWebViewDidEndEditing:(MCTextFieldWebView *)webView;
@end
@interface MCTextFieldWebView : WebView {
BOOL finishedLoading;
BOOL failedLoad;
CGFloat fontSize;
IBOutlet __weak id <MCTextFieldWebViewDelegate> textFieldDelegate;
}
@property (nonatomic, copy) NSString *htmlString;
@property (nonatomic, readonly) NSString *plainString;
@property (nonatomic, assign) CGFloat fontSize;
@property (nonatomic, copy) NSString *fontFamily;
@property (nonatomic, retain) NSColor *textColor;
@property (nonatomic, assign) NSTextAlignment textAlignment;
@property (nonatomic, assign) IBOutlet __weak id <MCTextFieldWebViewDelegate> textFieldDelegate;
@end