UPE // Give a comfortable default font size.
This commit is contained in:
parent
66adfa64b1
commit
d188d6d36c
|
@ -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>
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue