HexFiend
HFTextView.h
Go to the documentation of this file.
1 //
2 // HFTextView.h
3 // HexFiend_2
4 //
5 // Copyright 2009 ridiculous_fish. All rights reserved.
6 //
7 
8 #import <Cocoa/Cocoa.h>
9 #import <HexFiend/HFController.h>
10 
11 @class HFLayoutRepresenter;
12 
18 @interface HFTextView : NSControl {
19  HFController *dataController;
21  BOOL bordered;
22  IBOutlet id delegate;
23  NSData *cachedData;
24 }
25 
29 
31 @property (nonatomic, strong) HFController *controller;
32 
34 @property (nonatomic, strong) HFLayoutRepresenter *layoutRepresenter;
35 
37 @property (nonatomic, strong) HFByteArray *byteArray;
38 
40 
46 @property (nonatomic, copy) NSArray *backgroundColors;
48 
50 @property (nonatomic) BOOL bordered;
52 
54 @property (nonatomic, assign) id delegate;
55 
62 @property (nonatomic, copy) NSData *data;
63 
64 
65 @end
66 
70 @protocol HFTextViewDelegate <NSObject>
71 
73 - (void)hexTextView:(HFTextView *)view didChangeProperties:(HFControllerPropertyBits)properties;
74 
75 @end
Delegate methods for HFTextView.
HFController * controller
The HFController for the receiver. Useful for adding or removing HFRepresenters from the text view at...
Definition: HFTextView.h:25
NSArray * backgroundColors
The array of background colors for the receiver.
Definition: HFTextView.h:41
A central class that acts as the controller layer for HexFiend.framework.
Definition: HFController.h:97
BOOL bordered
Whether the receiver draws a border.
Definition: HFTextView.h:44
NSData * data
Definition: HFTextView.h:56
An HFRepresenter responsible for arranging the views of other HFRepresenters attached to the same HFC...
Definition: HFLayoutRepresenter.h:41
HFControllerPropertyBits
Definition: HFController.h:21
The principal Model class for HexFiend&#39;s MVC architecture.
Definition: HFByteArray.h:36
A high-level view class analagous to NSTextView.
Definition: HFTextView.h:18
HFLayoutRepresenter * layoutRepresenter
The HFLayoutRepresenter for the receiver. An HFTextView comes with its own HFLayoutRepresenter, but you can replace it.
Definition: HFTextView.h:28
HFByteArray * byteArray
Returns the HFByteArray for the receiver. This is equivalent to [[self controller] byteArray]...
Definition: HFTextView.h:31
id delegate
The delegate, which may implement the methods in HFTextViewDelegate. Initially nil.
Definition: HFTextView.h:48