HexFiend
HFRepresenter.h
Go to the documentation of this file.
1 //
2 // HFRepresenter.h
3 // HexFiend_2
4 //
5 // Copyright 2007 ridiculous_fish. All rights reserved.
6 //
7 
8 #import <Cocoa/Cocoa.h>
9 #import <HexFiend/HFController.h>
10 
29 @interface HFRepresenter : NSObject <NSCoding> {
30  @private
31  id view;
33  NSPoint layoutPosition;
34 }
35 
42 - (id)view;
43 
46 - (BOOL)isViewLoaded;
47 
50 - (NSView *)createView NS_RETURNS_RETAINED;
51 
54 - (void)initializeView;
55 
57 
64 
70 - (void)controllerDidChange:(HFControllerPropertyBits)bits;
72 
78 - (NSUInteger)bytesPerLine;
79 
81 - (NSUInteger)bytesPerColumn;
82 
85 - (void)representerChangedProperties:(HFControllerPropertyBits)properties;
87 
93 - (NSUInteger)maximumBytesPerLineForViewWidth:(CGFloat)viewWidth;
94 
96 - (CGFloat)minimumViewWidthForBytesPerLine:(NSUInteger)bytesPerLine;
97 
99 - (double)maximumAvailableLinesForViewHeight:(CGFloat)viewHeight;
101 
103 - (NSUInteger)byteGranularity;
104 
109 
110 
112 @property (nonatomic) NSPoint layoutPosition;
113 
116 + (NSPoint)defaultLayoutPosition;
117 
119 
120 
121 @end
NSView * NS_RETURNS_RETAINED()
NSPoint defaultLayoutPosition()
NSUInteger bytesPerLine()
NSUInteger byteGranularity()
A central class that acts as the controller layer for HexFiend.framework.
Definition: HFController.h:97
The principal view class of Hex Fiend&#39;s MVC architecture.
Definition: HFRepresenter.h:29
HFControllerPropertyBits
Definition: HFController.h:21
void initializeView()
NSPoint layoutPosition
The layout position for the receiver.
Definition: HFRepresenter.h:107
NSUInteger bytesPerColumn()
HFController * controller()