How to resize NSTextView according to its content?

Posted by Miraaj on Stack Overflow See other posts from Stack Overflow or by Miraaj
Published on 2010-04-20T13:00:16Z Indexed on 2010/04/20 13:03 UTC
Read the original article Hit count: 298

Filed under:
|

Hi all,

I want to set simple html contents within a web view and then resize it according to its content.

To set simple html contents within web view I used this code and it is working fine:

[[myWebView mainFrame] loadHTMLString:webViewContents baseURL:baseURLFramed];

but I am not getting any clue on resizing web view according to its content.

Can anyone suggest me some solution for it?

Thanks,

Miraaj

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about webview