I have some resizable NSTextViews and I am also doing my own line-wrapping.
Consequently, I'd like to be able to find out the width of the NSTextView,
in characters (fortunately, I'm using a constant-width font :-).

I see a method (containerSize) which will give me the size of the text
area's bounding rectangle.  I could use this, if I knew how to:

  *  get the width of a single character, in the current font

  *  pull the coordinate values out of a "rectangle".

Then again, maybe there's an easier way.  Suggestions?

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

Reply via email to