This question is in relation to my comment at How do we measure visible bounds of text in Cocoa?.
Here are a couple of links explaining the meaning of the flag. Appl
Google this monkey patch
NS(Attributed)String+Geometrics
It solves the problem fairly reliably.