UPE // Give a comfortable default font size.

This commit is contained in:
ShikiSuen 2022-04-18 17:05:40 +08:00
parent 66adfa64b1
commit d188d6d36c
2 changed files with 5 additions and 0 deletions

View File

@ -721,6 +721,9 @@
<constraint firstItem="yLp-eY-fSk" firstAttribute="leading" secondItem="ERx-hH-rdd" secondAttribute="leading" id="x50-d0-FBr"/>
</constraints>
</view>
<connections>
<outlet property="edtDocument" destination="E0u-iA-KeT" id="keh-oC-FVk"/>
</connections>
</viewController>
<customObject id="2Tp-Fl-jBw" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>

View File

@ -25,6 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import Cocoa
class ViewController: NSViewController, NSTextViewDelegate {
@IBOutlet var edtDocument: NSTextView!
/// - Tag: setRepresentedObjectExample
override var representedObject: Any? {
didSet {
@ -45,6 +46,7 @@ class ViewController: NSViewController, NSTextViewDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
edtDocument.font = NSFont(name: "Monaco", size: 16)
}
override func viewDidAppear() {