simplify the mess of code that is the pieces view

This commit is contained in:
Mitchell Livingston
2007-06-20 22:53:46 +00:00
parent b07c8df3cf
commit 54ec3716cc
8 changed files with 28 additions and 116 deletions

View File

@@ -25,7 +25,7 @@
#import <Cocoa/Cocoa.h>
#import "Torrent.h"
@interface PiecesView : NSObject
@interface PiecesView : NSImageView
{
int8_t * fPieces;
@@ -35,12 +35,9 @@
Torrent * fTorrent;
int fNumPieces, fAcross, fWidth, fExtraBorder;
IBOutlet NSImageView * fImageView;
}
- (void) setTorrent: (Torrent *) torrent;
- (void) updateView: (BOOL) first;
- (void) toggleView;
@end