Up and downstream loading implemented
This commit is contained in:
@@ -16,6 +16,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
func applicationDidFinishLaunching(_ aNotification: Notification) {
|
||||
// Insert code here to initialize your application
|
||||
pthread_mutex_init(&((NSApp.delegate as! AppDelegate).lock), nil)
|
||||
|
||||
/* TESTBED
|
||||
do {
|
||||
let data: NSData = try NSData(contentsOfFile: "/Users/kili2/Desktop/2017.docsisplist2/06/20/Downstream 666000000.hex")
|
||||
print(FileOperations.loadDownstream(log: data))
|
||||
} catch _ {
|
||||
exit(-1)
|
||||
}
|
||||
**/
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification) {
|
||||
|
||||
@@ -87,7 +87,7 @@ extension CollectionViewMonth: NSCollectionViewDataSource {
|
||||
/*
|
||||
guard var logA = String(data: log.regularFileContents!, encoding: .utf8)?.components(separatedBy: "\n") else { return }
|
||||
*/
|
||||
guard var logA = FileOperations.load(log: log.regularFileContents! as NSData)?.components(separatedBy: "\n") else { return }
|
||||
guard var logA = FileOperations.load(log: log.regularFileContents! as NSData) else { return }
|
||||
logA.removeLast()
|
||||
item2.distribution = logA
|
||||
OperationQueue.main.addOperation {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.1</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>418</string>
|
||||
<string>424</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version 2.1
|
||||
build 418
|
||||
build 424
|
||||
|
||||
Reference in New Issue
Block a user