Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotated text in NSTextView



>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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.