mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-11-19 10:31:23 +00:00
34 lines
832 B
Objective-C
34 lines
832 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "ResKnifeResourceProtocol.h"
|
|
|
|
@class HexWindowController;
|
|
|
|
@interface HexEditorDelegate : NSObject
|
|
{
|
|
IBOutlet HexWindowController *controller;
|
|
IBOutlet NSTextView *ascii;
|
|
IBOutlet NSTextView *hex;
|
|
IBOutlet NSTextView *offset;
|
|
IBOutlet NSTextField *message;
|
|
IBOutlet NSMenu *pasteSubmenu;
|
|
|
|
BOOL editedLow;
|
|
}
|
|
|
|
- (NSString *)offsetRepresentation:(NSData *)data;
|
|
- (NSString *)hexRepresentation:(NSData *)data;
|
|
- (NSString *)asciiRepresentation:(NSData *)data;
|
|
|
|
- (NSRange)byteRangeFromHexRange:(NSRange)hexRange;
|
|
- (NSRange)hexRangeFromByteRange:(NSRange)byteRange;
|
|
- (NSRange)byteRangeFromAsciiRange:(NSRange)asciiRange;
|
|
- (NSRange)asciiRangeFromByteRange:(NSRange)byteRange;
|
|
|
|
- (NSTextView *)hex;
|
|
- (NSTextView *)ascii;
|
|
|
|
- (BOOL)editedLow;
|
|
- (void)setEditedLow:(BOOL)flag;
|
|
|
|
@end |