FROM : Joshua Scott Emmons
DATE : Mon Feb 18 18:36:29 2008
> Does anyone know why a wrapped NSTextField has a slightly larger
> line spacing than NSTextView with the same font?
> What is a good way to predict the required string height for text
> which will be drawn in a wrapped NSTextField?
Could it have something to do with typesetter behaviors?
http://lists.apple.com/archives/cocoa-dev/2006/Jan/msg00109.html
It could be that the pre-packaged NSLayoutManager that comes with an
NSTextView has a different typesetter behavior than one that you
freshly alloc for use with your NSTextField?
Just a guess,
-Joshua Emmons
DATE : Mon Feb 18 18:36:29 2008
> Does anyone know why a wrapped NSTextField has a slightly larger
> line spacing than NSTextView with the same font?
> What is a good way to predict the required string height for text
> which will be drawn in a wrapped NSTextField?
Could it have something to do with typesetter behaviors?
http://lists.apple.com/archives/cocoa-dev/2006/Jan/msg00109.html
It could be that the pre-packaged NSLayoutManager that comes with an
NSTextView has a different typesetter behavior than one that you
freshly alloc for use with your NSTextField?
Just a guess,
-Joshua Emmons
| Related mails | Author | Date |
|---|---|---|
| Jerry Krinock | Feb 18, 06:24 | |
| Jerry Krinock | Feb 18, 18:29 | |
| Joshua Scott Emmon… | Feb 18, 18:36 |






Cocoa mail archive

