如何在OS X上旋转NSTextField?

Dav*_*ton 2 macos cocoa ios

OS X [UIView setTransform:]在iOS上有相同的功能吗?我有一个NSTextField我想旋转10度.在iOS中,我只是使用[UILabel setTransform:].Cocoa Framework有什么相同的东西吗?

wat*_*n12 9

frameRotation或者frameCenterRotation应该这样做