user1927992
user1927992

Reputation: 123

Cocoa NSTextView changing word size

I have an NSTextView object on my window. I pass NSStrings into it and it displays. I would like to change the size of the words displayed. How do I do that? Do I do it in the inspector or is there a way to do that in code? Please give an example. Thanks!

Upvotes: 1

Views: 51

Answers (1)

trojanfoe
trojanfoe

Reputation: 122391

NSTextField is derived from NSControl which exposes a font property (reference):

textField.font = [NSFont fontWithName:@"Something" size:12.0];

Upvotes: 1

Related Questions