@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;
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;
@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
{