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