]> granicus.if.org Git - transmission/commitdiff
more variables corresponding to properties in FileRenameSheetController
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 20:11:49 +0000 (20:11 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 20:11:49 +0000 (20:11 +0000)
macosx/FileRenameSheetController.h
macosx/FileRenameSheetController.m

index f1034b772793d8d7ddb45a72e6b3c5c32da4f7de..16c28d21aa8e47ce6f26aee0719b9016e75772fd 100644 (file)
 @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;
index fe26843b933fa16ba5fae8dede8fdc6e674e11bb..bd9989bcdcaea1bc31590fcc852c1cfedc9d7b74 100644 (file)
 
 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
 {