You're right, it was my question. You gave the Apple NSLayout Guide
method. But it didn't really satisfy me, because you said :
You may find that you need to add a little margin. I don't know why,
but to guarantee no wrapping I have to add 15 pixels to the returned
measurement. The required margin may depend on your font, size, etc.
It's true : sometimes (and only sometimes !), it needs a margin. To
have a font independent margin , I just add a breakline at the end of
the string when there isn't :
Thanks for your help Jerry, it's your post which gave me this idea ! _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden