Clean up.
This commit is contained in:
1 parent
7be3195c84
commit
020ba73192
5 files changed
+10
-17
No files matched your search
@@ -7,5 +7,4 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface SBApplication : NSApplication
|
||||
|
||||
@end
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user