Moved more UI fields to bindings.

This commit is contained in:
Damiano Galassi committed 2014-03-22 08:40:13 +01:00
1 parent 609af54296
commit 52e2131693
6 files changed
+18 -22

No files matched your search

-4
View File
@@ -14,10 +14,6 @@
@private
SBQueueItem *_item;
NSTextField *_nameLabel;
NSTextField *_sourceLabel;
NSTextField *_destinationLabel;
NSTextField *_actionsLabel;
NSButton *_editButton;
-12
View File
@@ -17,10 +17,6 @@ static void *SBItemViewContex = &SBItemViewContex;
@property SBQueueItem *item;
@property (assign) IBOutlet NSTextField *nameLabel;
@property (assign) IBOutlet NSTextField *sourceLabel;
@property (assign) IBOutlet NSTextField *destinationLabel;
@property (assign) IBOutlet NSTextField *actionsLabel;
@property (assign) IBOutlet NSButton *editButton;
@@ -33,10 +29,6 @@ static void *SBItemViewContex = &SBItemViewContex;
@synthesize item = _item;
@synthesize delegate = _delegate;
@synthesize nameLabel = _nameLabel;
@synthesize sourceLabel = _sourceLabel;
@synthesize destinationLabel = _destinationLabel;
@synthesize actionsLabel = _actionsLabel;
@synthesize editButton = _editButton;
@@ -58,10 +50,6 @@ static void *SBItemViewContex = &SBItemViewContex;
- (void)loadView {
[super loadView];
[self.nameLabel setStringValue:[self.item.URL lastPathComponent]];
[self.sourceLabel setStringValue:[self.item.URL path]];
[self.destinationLabel setStringValue:[self.item.destURL path]];
NSMutableString *actions = [[[NSMutableString alloc] init] autorelease];
for (id<SBQueueActionProtocol> action in self.item.actions) {
[actions appendString:[NSString stringWithFormat:@"%@\n", [action description]]];
-1
View File
@@ -11,7 +11,6 @@
@interface SBOptionsViewController : NSViewController {
@private
IBOutlet NSPopUpButton *_destButton;
IBOutlet NSPopUpButton *_setsPopup;
NSMutableDictionary *_options;
NSMutableArray *_sets;
+2 -2
View File
@@ -14,7 +14,7 @@
@interface SBOptionsViewController ()
@property (nonatomic) NSMutableDictionary *options;
@property (nonatomic, copy) NSMutableArray *sets;
@property (nonatomic, retain) NSMutableArray *sets;
- (IBAction)chooseDestination:(id)sender;
- (IBAction)destination:(id)sender;
@@ -148,7 +148,7 @@
}
- (void)updateSetsMenu:(id)sender {
self.sets = [[SBPresetManager sharedManager].presets mutableCopy];
self.sets = [[[SBPresetManager sharedManager].presets mutableCopy] autorelease];
}
- (void)dealloc {