NSTextView (Java) sizeToFit not working
NSTextView (Java) sizeToFit not working
- Subject: NSTextView (Java) sizeToFit not working
- From: Christoph Gerdes <email@hidden>
- Date: Tue, 7 May 2002 03:57:22 +0200
Hello,
I'd like to fit an NSTextView so its text is completely shown:
NSTextView view = new NSTextView(new NSRect(0,0,0,0) );
view.setString("hello world!");
view.setHorizontallyResizable(true);
view.setVerticallyResizable(false);
view.setAutoresizeableMask(NSView.ViewWidthSizable);
view.sizeToFit();
But this doesn't to anything! The size didn't change at all. What's wrong?
TIA
Christoph
--
4CD3 152A F59A 2788 3E29 9CC5 7502 DA0B 705B 0564
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.