From 27cb4359960b9b3ad0e1320ffa1c6f14e79ed4d9 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 26 Jan 2013 20:11:49 +0000 Subject: [PATCH] more variables corresponding to properties in FileRenameSheetController --- macosx/FileRenameSheetController.h | 10 ++++++++++ macosx/FileRenameSheetController.m | 11 +++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/macosx/FileRenameSheetController.h b/macosx/FileRenameSheetController.h index f1034b772..16c28d21a 100644 --- a/macosx/FileRenameSheetController.h +++ b/macosx/FileRenameSheetController.h @@ -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; diff --git a/macosx/FileRenameSheetController.m b/macosx/FileRenameSheetController.m index fe26843b9..bd9989bcd 100644 --- a/macosx/FileRenameSheetController.m +++ b/macosx/FileRenameSheetController.m @@ -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 { -- 2.40.0