Browse Source

【综合】整理代码

tangchao 11 months ago
parent
commit
1f9639618a

+ 0 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -936,7 +936,6 @@ extension KMLeftSideViewController {
     func loadUnfoldDate(_ foldType: KMFoldType) {
         // 清空所有折叠数组
         self.allFoldNotes.removeAll()
-        
         var mutableArray: [CPDFAnnotation] = []
         if self.noteSearchMode {
             for note in self.noteSearchArray {

+ 1 - 9
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -1985,7 +1985,6 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
             let ols = self.fetchOutlines(for: ol, searchString: self.outlineSearchField.stringValue)
             return ols.count > 0
         } else if outlineView.isEqual(to: self.noteOutlineView) {
-    //        return [item hasNoteText];
             return false
         }
         return false
@@ -2086,11 +2085,7 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
             if (index < 0) {
                 return false
             }
-//            guard let outline = item as? CPDFOutline else {
-//                return false
-//            }
             let outline = item as? CPDFOutline
-            
             guard let dragPDFOL = self._dragPDFOutline else {
                 return false
             }
@@ -2153,12 +2148,10 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
     
     func outlineView(_ outlineView: NSOutlineView, setObjectValue object: Any?, for tableColumn: NSTableColumn?, byItem item: Any?) {
         if outlineView.isEqual(to: self.noteOutlineView) {
-//            PDFAnnotation *note = item;
             var note: CPDFAnnotation?
-            = item as? CPDFAnnotation
             if let data = item as? CPDFAnnotation {
                 note = data
-            } else if let data = note as? KMBOTAAnnotationItem {
+            } else if let data = item as? KMBOTAAnnotationItem {
                 note = data.annotation
             }
             if let data = note?.type, data.isEmpty == false {
@@ -2535,7 +2528,6 @@ extension KMLeftSideViewController {
         self.findTableView.font = font
         self.groupedFindTableView.font = font
     }
-
 }
 
 

+ 16 - 16
PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -532,22 +532,6 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "1A7283C5-76BA-4504-9A88-46A4A08FD00E"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "2099"
-            endingLineNumber = "2099"
-            landmarkName = "outlineView(_:acceptDrop:item:childIndex:)"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
@@ -596,5 +580,21 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "3B9248C8-2682-4326-B0EA-B95A9898E0B1"
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "364"
+            endingLineNumber = "364"
+            landmarkName = "note_expandAllComments(_:)"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>