• 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
NSTextView (Java) sizeToFit not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: validateMenuItem problem
  • Next by Date: Re: NSCell for customize a NSTableView
  • Previous by thread: validateMenuItem problem
  • Next by thread: Where to put "Check for Updates" menu item
  • Index(es):
    • Date
    • Thread