-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from LumingYin/2.1_performanceOptimization
Improve timeline scrolling performance.
- Loading branch information
Showing
17 changed files
with
297 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@import Foundation; | ||
@import AppKit; | ||
|
||
@interface NSObject (KVO) | ||
|
||
- (void)safelyRemoveObserver:(nonnull NSObject *)observer forKeyPath:(nonnull NSString *)keyPath; | ||
- (NSURL*)applicationDataDirectory; | ||
|
||
@end | ||
|
||
@interface NSImage(saveAsJpegWithName) | ||
- (void) saveAsJpegWithName:(NSString*) fileName; | ||
- (void)saveAsFileWithType:(NSBitmapImageFileType)type withName:(NSString *)fileName; | ||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// CaptionWaveformBox.swift | ||
// Quick Caption | ||
// | ||
// Created by Blue on 3/18/19. | ||
// Copyright © 2019 Bright. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class CaptionWaveformBox: NSBox { | ||
var guid: String? | ||
|
||
func addSubWaveformView(capturedGUID: String?, imageView: NSImageView) { | ||
if let cap = capturedGUID { | ||
if (self.guid == cap) { | ||
self.contentView!.addSubview(imageView) | ||
} else { | ||
print("Rejecting waveform from GUID:\(capturedGUID)") | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.