• 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
my text goes under a the scrollers....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

my text goes under a the scrollers....


  • Subject: my text goes under a the scrollers....
  • From: Andrea Salomoni <email@hidden>
  • Date: Thu, 9 Feb 2006 14:24:06 +0100

Hi to all,

I created an NSScrollView and a NSTextView programmatically in this way:

NSScrollView *scrollview = [[NSScrollView alloc]
            initWithFrame:cFrame];
	NSSize contentSize = [scrollview contentSize];
	[scrollview setBorderType:NSNoBorder];
	[scrollview setAutohidesScrollers:YES];
	[scrollview setBorderType:NSBezelBorder];
	[scrollview setHasVerticalScroller:YES];
	[scrollview setHasHorizontalScroller:NO];
	[scrollview setAutoresizingMask:NSViewWidthSizable |
		NSViewHeightSizable];
	[startTab setView:scrollview];

// create the textview
	chatView = [[URLTextView alloc] initWithFrame:[scrollview frame]];
	// textView conf
	[chatView setEditable:YES];

	[[chatView textContainer]
            setContainerSize:NSMakeSize(contentSize.width, FLT_MAX)];
	[[chatView textContainer] setWidthTracksTextView:YES];
	[chatView  setFrame:[scrollview frame]];
	[scrollview setDocumentView:chatView];

But when I type some text my lines finish always under the scroller.... How can I do to stop the typing and force return?

Thank you all
Andrea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [solved] my text goes under a the scrollers....
      • From: Andrea Salomoni <email@hidden>
  • Prev by Date: Re: Now available -- Re: [ANN] UKCrashReporter 0.1
  • Next by Date: Re: Now available -- Re: [ANN] UKCrashReporter 0.1
  • Previous by thread: Re: programatically adding checkboxes to a sheet
  • Next by thread: [solved] my text goes under a the scrollers....
  • Index(es):
    • Date
    • Thread