Nstextfield Non-System-Font Content Clipped When Usessinglelinemode Is True

Truncating last visible line of NSTextField

You need to set that on the cell property of NSTextField as follows:

label.cell?.truncatesLastVisibleLine = true

How to handle System Font change between OS X 10.9 and 10.10

If you use Cocoa's Auto Layout facilities, this is a non-issue. All of your nibs will automatically readjust to the new font metrics. https://developer.apple.com/library/mac/releasenotes/UserExperience/RNAutomaticLayout/

Keep an NSTextField (non visible) or start a new one when needed?

Your decision was probably the wisest. Using one single textfield is all you need and since you are presuming that it deallocs, it would be my guess that it retains in memory and at some point it would eat all kinds of memory.



Related Topics



Leave a reply



Submit