1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-15 16:29:34 +00:00

more variables corresponding to properties in FileRenameSheetController

This commit is contained in:
Mitchell Livingston 2013-01-26 20:11:49 +00:00
parent 1185b618ff
commit 27cb435996
2 changed files with 15 additions and 6 deletions

View file

@ -12,6 +12,16 @@
@class Torrent;
@interface FileRenameSheetController : NSWindowController
{
Torrent * _torrent;
FileListNode * _node;
void (^_completionHandler)(BOOL);
IBOutlet NSTextField * _labelField;
IBOutlet NSTextField * _inputField;
IBOutlet NSButton * _renameButton;
IBOutlet NSButton * _cancelButton;
}
+ (void) presentSheetForTorrent: (Torrent *) torrent modalForWindow: (NSWindow *) window completionHandler: (void (^)(BOOL didRename)) completionHandler;
+ (void) presentSheetForFileListNode: (FileListNode *) node modalForWindow: (NSWindow *) window completionHandler: (void (^)(BOOL didRename)) completionHandler;

View file

@ -12,12 +12,7 @@
typedef void (^CompletionBlock)(BOOL);
@interface FileRenameSheetController () {
#warning remove when 64-it
Torrent * _torrent;
FileListNode * _node;
CompletionBlock _completionHandler;
}
@interface FileRenameSheetController ()
@property (nonatomic, retain) Torrent * torrent;
@property (nonatomic, retain) FileListNode * node;
@ -31,6 +26,10 @@ typedef void (^CompletionBlock)(BOOL);
@synthesize torrent = _torrent;
@synthesize node = _node;
@synthesize completionHandler = _completionHandler;
@synthesize labelField = _labelField;
@synthesize inputField = _inputField;
@synthesize renameButton = _renameButton;
@synthesize cancelButton = _cancelButton;
+ (void) presentSheetForTorrent: (Torrent *) torrent modalForWindow: (NSWindow *) window completionHandler: (void (^)(BOOL didRename)) completionHandler
{