NSTextField with automatic NSNumberFormatter in Interface Builder

前端 未结 2 1111
萌比男神i
萌比男神i 2021-01-12 05:44

I\'ve been making iOS apps for awhile, but I\'m trying my hand at MacOS development. I\'m adding an NSTextField to my UI and I noticed in Xcode that one of the options in th

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 06:09

    to configure the number formatter, you can ( after you've selected the formatter ) open the Attributes inspector, select the behavior you want and customize the formatter. At least that worked for me in XCode 4.

    – moritz

    enter image description here

提交回复
热议问题