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
import Cocoa | |
import CoreAudio | |
public struct DeviceID { | |
let deviceID: AudioDeviceID | |
let UID: String | |
}// end struct DeviceID | |
final class AudioDevices: NSObject { | |
// MARK: Outlets |
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
// | |
// HexAndNSColorTransformer.swift | |
// Charleston | |
// | |
// Created by Чайка on 2018/08/08. | |
// Copyright © 2018 Чайка. All rights reserved. | |
// | |
import Cocoa |
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
- (CGFloat) heightOfView:(CGFloat)width | |
{ | |
CGFloat width = view.bounds.size.width; | |
NSTextStorage *storage = [[NSTextStorage alloc] initWithString:comment.comment]; | |
NSTextContainer *container = [[NSTextContainer alloc] initWithContainerSize:NSMakeSize(width, FLT_MAX)]; | |
NSLayoutManager *manager = [[NSLayoutManager alloc] init]; | |
[container setLineBreakMode:NSLineBreakByCharWrapping]; | |
[manager addTextContainer:container]; |
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
nullObject : (null) |
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
<key>NSSupportsAutomaticTermination</key> | |
<false/> |