Smalls changes. Linked the edit button to its IBAction.

This commit is contained in:
Damiano Galassi committed 2014-03-19 19:34:29 +01:00
1 parent ff5ac492a0
commit 151d9c07f8
8 files changed
+161 -114

No files matched your search

+11
View File
@@ -7,7 +7,9 @@
//
#import "SBItemViewController.h"
#import "SBQueueItem.h"
#import "SBQueueController.h"
@interface SBItemViewController ()
@@ -24,6 +26,7 @@
@implementation SBItemViewController
@synthesize item = _item;
@synthesize delegate = _delegate;
@synthesize nameLabel = _nameLabel;
@synthesize sourceLabel = _sourceLabel;
@@ -67,6 +70,14 @@
[self.view setFrameSize:frameSize];
}
- (IBAction)edit:(id)sender {
[sender setEnabled:NO];
if ([self.delegate respondsToSelector:@selector(editItem:)]) {
[self.delegate performSelector:@selector(editItem:) withObject:self.item];
}
}
- (void)dealloc {
[_item release];
[super dealloc];