Re: rotated text in NSTextView
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