• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotating NSTextField 90 degrees
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotating NSTextField 90 degrees


  • Subject: Re: Rotating NSTextField 90 degrees
  • From: Carl Hoefs via Cocoa-dev <email@hidden>
  • Date: Thu, 24 Sep 2020 21:31:01 -0700

Both work perfectly:

   m4TField.layer.transform = CATransform3DMakeRotation(3.14159/2.0,0,0,1);

- or -

   [m4TField setFrameRotation:90.0];

Thanks!
-Carl


> On Sep 24, 2020, at 9:19 PM, Alex Zavatone <email@hidden> wrote:
>
> http://digerati-illuminatus.blogspot.com/2009/09/how-do-you-rotate-nsbutton-nstextfield.html
>
>
>
>> 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

References: 
 >Rotating NSTextField 90 degrees (From: Carl Hoefs via Cocoa-dev <email@hidden>)
 >Re: Rotating NSTextField 90 degrees (From: Alex Zavatone via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Rotating NSTextField 90 degrees
  • Previous by thread: Re: Rotating NSTextField 90 degrees
  • Index(es):
    • Date
    • Thread