How to configure NumberFormatter in Xcode

Gerriet M. Denkmann

macOS 12.6, Xcode Version 9.1 (9B55).

I added a NumberFormatter (Decimal) to some TextField. This now shows: “12.345”.
Not bad, but I want to see: “12.3”.

NSNumberFormatter has a property: maximumFractionDigits - but I can’t find where to use this in Xcode.

Sure, I can edit MyWindow.xib and change maximumFractionDigits=“3” to maximumFractionDigits=“1”, but somehow this feels not the right and proper way to to things.


Join to automatically receive all group messages.