How to handle system font change between OS X 10.9 and 10.10

Some, but not other beta testers of my current application project reported clipping NSTextField views. This alerted me until I realized that OS X 10.9 and 10.10 use a different font like System Font (Lucida Grande vs. Helvetica Neue). Is there an acceptable practice for programmatically handling this situation? I understand that I can make my NSTextFields wider; however, I am looking for a solution in which several NSTextFields that are next to each other will not be copied. Thank you very much.

+5
source share
1 answer

If you use Cocoa auto-layout tools, this is not a problem. All your feathers will automatically reconfigure to new font metrics. https://developer.apple.com/library/mac/releasenotes/UserExperience/RNAutomaticLayout/

+6
source

Source: https://habr.com/ru/post/1232137/


All Articles