cocoa - How can I determine the minimum NSRect for drawing an attributed string? -
i cannot seem find , hope faq somewhere. how can minimum nsrect needed draw nsattributed string on os x? doing overlay borderless window, want constrain size based on needed display string.
use nstextcontainer , nslayoutmanager. more apple here: https://developer.apple.com/library/mac/#documentation/cocoa/conceptual/textlayout/tasks/stringheight.html
Comments
Post a Comment