HexFiend: HFRepresenter.h Source File

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;
32 HFController *controller;
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
62 - (HFController *)controller;
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
-[HFRepresenter view]
id view()
-[HFRepresenter NS_RETURNS_RETAINED]
NSView * NS_RETURNS_RETAINED()
+[HFRepresenter defaultLayoutPosition]
NSPoint defaultLayoutPosition()
-[HFRepresenter bytesPerLine]
NSUInteger bytesPerLine()
-[HFRepresenter byteGranularity]
NSUInteger byteGranularity()
HFController
A central class that acts as the controller layer for HexFiend.framework.
Definition: HFController.h:97
-[HFRepresenter isViewLoaded]
BOOL isViewLoaded()
HFRepresenter
The principal view class of Hex Fiend&#39;s MVC architecture.
Definition: HFRepresenter.h:29
HFControllerPropertyBits
HFControllerPropertyBits
Definition: HFController.h:21
-[HFRepresenter initializeView]
void initializeView()
HFRepresenter::layoutPosition
NSPoint layoutPosition
The layout position for the receiver.
Definition: HFRepresenter.h:107
-[HFRepresenter bytesPerColumn]
NSUInteger bytesPerColumn()
-[HFRepresenter controller]
HFController * controller()