Clean up.

This commit is contained in:
Damiano Galassi committed 2016-09-09 17:23:50 +02:00
1 parent 7be3195c84
commit 020ba73192
5 files changed
+10 -17

No files matched your search

-1
View File
@@ -7,5 +7,4 @@
#import <Cocoa/Cocoa.h>
@interface SBApplication : NSApplication
@end
+1 -5
View File
@@ -13,11 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@class SBLogger;
@interface SBLogWindowController : NSWindowController <MP42Logging> {
@private
NSTextView *__unsafe_unretained _logView;
SBLogger *_logger;
}
@interface SBLogWindowController : NSWindowController <MP42Logging>
- (instancetype)initWithLogger:(SBLogger *)logger;
+4 -1
View File
@@ -10,7 +10,10 @@
#import "SBLogger.h"
@interface SBLogWindowController ()
{
NSTextView *__unsafe_unretained _logView;
SBLogger *_logger;
}
@property (nonatomic, unsafe_unretained) IBOutlet NSTextView *logView;
@property (nonatomic, readonly) SBLogger *logger;
+1 -5
View File
@@ -11,15 +11,11 @@
NS_ASSUME_NONNULL_BEGIN
@interface SBLogger : NSObject <MP42Logging> {
NSURL *_fileURL;
id <MP42Logging> __unsafe_unretained _delegate;
}
@interface SBLogger : NSObject <MP42Logging>
@property (atomic, unsafe_unretained, readwrite, nullable) id <MP42Logging> delegate;
- (instancetype)initWithLogFile:(NSURL *)fileURL;
- (void)clearLog;
@end
+4 -5
View File
@@ -10,6 +10,10 @@
#import "SBLogger.h"
@interface SBLogger ()
{
NSURL *_fileURL;
id <MP42Logging> __unsafe_unretained _delegate;
}
@property (nonatomic, readonly) NSURL *fileURL;
@@ -17,9 +21,6 @@
@implementation SBLogger
@synthesize fileURL = _fileURL;
@synthesize delegate = _delegate;
- (instancetype)initWithLogFile:(NSURL *)fileURL {
self = [self init];
@@ -66,9 +67,7 @@
}
- (void)dealloc {
_delegate = nil;
}
@end