Line  | Count  | Source  | 
1  | //  | |
2  | // CutBoxGetStatusItem.swift  | |
3  | // CutBox  | |
4  | //  | |
5  | // Created by jason on 11/9/23.  | |
6  | // Copyright © 2023 ocodo. All rights reserved.  | |
7  | //  | |
8  | ||
9  | import Cocoa  | |
10  | ||
11  | 49  | func cutBoxGetStatusItem(testing: Bool = false) -> NSStatusItem { | 
12  | 49  |     guard !testing else { return NSStatusItem() } | 
13  | 25  | return NSStatusBar.system  | 
14  | 25  | .statusItem(withLength: NSStatusItem.variableLength)  | 
15  | 49  | }  |