• 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: rotated text in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotated text in NSTextView


  • Subject: Re: rotated text in NSTextView
  • From: "Ewan Delanoy" <email@hidden>
  • Date: Thu, 31 May 2007 08:22:56 +0200 (CEST)
  • Importance: Normal

>I should like to construct a special NSTextView which displays its text
>"rotated by 90 degrees" : it starts in the lower left corner, the lines
>are vertical and the text goes upwards in a given line

  Zef Rosnbrick wrote :

>NSView has the method setFrameRotation...


   Yes. So I tried the following : in the default Cocoa NSDocument-based
Xcode project template, I put a
NSTextView in MyDocument.nib, added an NSTextView outlet
in MyDocument.m, connected the two, and inserted the following line in the
- windowControllerDidLoadNib: method of MyDocument.m :

- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
    [super windowControllerDidLoadNib:aController];
	[myTextView setFrameRotation:90.00];
}

   On runtime I only see a blank text view, type as I may. Also,
when I have punched a lot of keys, the enclosing scroll view starts going
downwards (when it should be going rightwards). What
am I doing wrong ?

                                                  Ewan




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Re: Listen to network traffic
  • Next by Date: Re: Creating TIFF image with one strip only in Cocoa
  • Previous by thread: Re: rotated text in NSTextView
  • Next by thread: StartCalendarInterval Question
  • Index(es):
    • Date
    • Thread