UI improvements. Added a spinner to shows the loading of an mp4.

This commit is contained in:
Damiano Galassi committed 2014-03-20 20:13:15 +01:00
1 parent 718c8b1138
commit 0efb5cbc23
4 files changed
+22 -8

No files matched your search

+2
View File
@@ -20,6 +20,8 @@
NSTextField *_actionsLabel;
NSProgressIndicator *_spinner;
id _delegate;
}
+5
View File
@@ -21,6 +21,8 @@
@property (assign) IBOutlet NSTextField *actionsLabel;
@property (assign) IBOutlet NSProgressIndicator *spinner;
@end
@implementation SBItemViewController
@@ -34,6 +36,8 @@
@synthesize actionsLabel = _actionsLabel;
@synthesize spinner = _spinner;
- (instancetype)initWithItem:(SBQueueItem *)item {
self = [self init];
if (self) {
@@ -72,6 +76,7 @@
- (IBAction)edit:(id)sender {
[sender setEnabled:NO];
[self.spinner startAnimation:sender];
if ([self.delegate respondsToSelector:@selector(editItem:)]) {
[self.delegate performSelector:@selector(editItem:) withObject:self.item];