Re: Rotating NSTextField 90 degrees
Re: Rotating NSTextField 90 degrees
- Subject: Re: Rotating NSTextField 90 degrees
- From: Alex Zavatone via Cocoa-dev <email@hidden>
- Date: Thu, 24 Sep 2020 23:18:03 -0500
Check out
frameRotation or
myView.wantsLayer = YES;
myView.layer.transform = CATransform3DMakeRotation(angle,
0, 0, 1);
There is this too.
https://developer.apple.com/documentation/appkit/nsview/1483444-rotate
<https://developer.apple.com/documentation/appkit/nsview/1483444-rotate>
https://developer.apple.com/documentation/appkit/nsview/1483444-rotatebyangle?language=objc
> On Sep 24, 2020, at 11:09 PM, Carl Hoefs via Cocoa-dev
> <email@hidden> wrote:
>
> In my MacOS app I need to display some vertical text (normal text rotated 90
> degrees counterclockwise).
>
> I don't see anything in NSTextField or Xcode IB that allows a change of
> orientation. Could NSAttributedString be used to do this, or is there some
> CoreGraphics way?
>
> -Carl
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden