• 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: Programatically resizing a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically resizing a NSTableView


  • Subject: Re: Programatically resizing a NSTableView
  • From: j o a r <email@hidden>
  • Date: Wed, 1 Oct 2003 00:32:41 +0200

It's probably since the table view is inside a scroll view that controls it's size. Try to change the size of the enclosing scroll view instead:

NSSize currentSize = [[myTableView enclosingScrollView] frame].size;
currentSize.width = currentSize.width / 2;
[[myTableView enclosingScrollView] setFrameSize: currentSize];
[[myTableView enclosingScrollView] setNeedsDisplay: YES];

j o a r

On 2003-09-30, at 21.46, Rolf wrote:

I am desperately trying to resize a NSTableView programatically but it just won't resize and I don't understand why.
I have tried setFrame, setFrameSize, added setNeedsDisplay, etc. Why doesn't setFrame work, and what's the correct way to do it ?
_______________________________________________
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.

  • Next by Date: Re: Programatically resizing a NSTableView
  • Next by thread: Re: Programatically resizing a NSTableView
  • Index(es):
    • Date
    • Thread