• 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: [SOLVED] TextView Autoresizing Mask problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] TextView Autoresizing Mask problems


  • Subject: Re: [SOLVED] TextView Autoresizing Mask problems
  • From: Keith Wilson <email@hidden>
  • Date: Fri, 27 Jan 2006 01:57:29 +1100

Have tried

[[textView enclosingScrollView] setAutoResizingMask :NSViewHeightSizable|NSViewWidthSizable];

Keith

On 26/01/2006, at 7:00 PM, Nik Youdale wrote:

Hey,

Solved the problem, it was a simple matter of calling [textView setVerticallyResizable:NO];
Still not entirely sure why that makes such a difference to the textView's resizing behaviour...


- Nik

On 25/01/2006, at 3:21 PM, Nik Youdale wrote:

Hey,

I have run into a problem with a textView that i have created in one of my custom views. It appears that if i set the autoresizing mask on the textView to resize both vertically and horizontally, there is some very unexpected behavior when resizing. It resizes just fine as expected if only vertical resizing is enabled, or if only horizontal resizing is enabled, but as soon as i put both together, the textView flies up vertically out of my view never to be seen again, when the view is resized. I have tested the same code with other views, and they resize as expected.
To simplify my problem, i have created a very basic NSView subclass:


@interface MyView : NSView {

}

@end


@implementation MyView

- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {
NSTextView *textView;
NSRect rect = frame;

rect.origin = NSMakePoint(0,0);
textView = [[NSTextView alloc] initWithFrame:rect];
[textView setAutoresizingMask:NSViewHeightSizable| NSViewWidthSizable];
[self addSubview:textView];
}
return self;
}


@end

Any ideas as to what I'm doing wrong?

- Nik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bigpond.net.au


This email sent to email@hidden

_______________________________________________ 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
References: 
 >TextView Autoresizing Mask problems (From: Nik Youdale <email@hidden>)
 >[SOLVED] TextView Autoresizing Mask problems (From: Nik Youdale <email@hidden>)

  • Prev by Date: NSFileManager and Finder disk usage discrepancy
  • Next by Date: Re: Bindings or datasource for a large NSTableView
  • Previous by thread: [SOLVED] TextView Autoresizing Mask problems
  • Next by thread: Re: TextView Autoresizing Mask problems
  • Index(es):
    • Date
    • Thread