Resizing NSTextField within Xcode 4 to fit default font?

蓝咒 提交于 2019-12-24 13:09:26

问题


In XCode 4, if I change the font of an NSTextField its frame does not update to accommodate the change. Further, under "Frame layout" its height is grayed-out and unalterable. Is there a quick way to adjust the frame of the NSTextField to fit its font choice without having to resort to a programmatic adjustment? Hopefully I have overlooked a simple control in Xcode 4.


回答1:


I found a somewhat awkward solution: by setting the "Line break" to "Word wrap" I was allowed to adjust the the height of the NSTextView in the Size inspector. I simply restored my "Line break" configuration when done.



来源:https://stackoverflow.com/questions/8659888/resizing-nstextfield-within-xcode-4-to-fit-default-font

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!