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.