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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -