• 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
Getting a table to resize columns. I'm doing everything right but it's not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a table to resize columns. I'm doing everything right but it's not working?


  • Subject: Getting a table to resize columns. I'm doing everything right but it's not working?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 24 Apr 2006 15:40:00 +0100

How do you get an NSTableView to resize it's columns?

Is there any mistake I could make that might inadvertantly stop it from doing the auto-resizing?

I got this NSTableView.

In IB, it has "Column Resizing" checked.

The column I want resized, is column 2, with an Identifier string of "2". It has "Live Resize" and "User Resize" set to true, although you can't actually get the grab bars because the Column headers are hidden.

I'm setting the MinWidth to something quite small, like:

	[col setMaxWidth:600];
	[col setMinWidth:90];

The table exists within a splitview. Resizing the window or the splitview, will resize the NSTableView in question.

So... why doesn't the thing resize when I resize it? Instead, all the columns stay at a fixed size, leaving a huge amount of extra space if there's too much, or just being clipped at the right if there's not enough!!

Something is going on here but I don't know what.

--
http://elfdata.com/plugin/



_______________________________________________
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:
    • Re: Getting a table to resize columns. I'm doing everything right but it's not working?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Which exception handling system should I use?
  • Next by Date: Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
  • Previous by thread: Re: Which exception handling system should I use?
  • Next by thread: Re: Getting a table to resize columns. I'm doing everything right but it's not working?
  • Index(es):
    • Date
    • Thread