I am familiar with sizeWithFont: for iPhone. Now I am trying to create a Mac application and need something similar, but I do not know how to do it: /
That's why I need it: I have a panel that displays some kind of text, and I want its size to just fit the content (a NSTextView ). How do you do this?
nsstring size nstextview macos
Bernardo
source share