• 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
NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?


  • Subject: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?
  • From: Daniel Vollmer <email@hidden>
  • Date: Wed, 03 Aug 2011 14:41:00 +0200

Hello all,

I have a window covered with an NSTableView inside an NSScrollView. The tableview has a single column which is set to autoresize with the tableview. This works as expected when I resize the window, the column extends correctly to fill the newly available space.

Now, what I'm trying to do is resize the tableview horizontally inside the scrollview *without* changing the size of the window itself[1]. I can do that easily enough by modifying its frame, but this seems to ignore the column auto-resizing and leaves the column at the original width. Of course, I could just set the new column width explicitly, but I'm trying use the autoresizing so that I can use NSViewAnimation to animate this transition.
Any ideas on why the column autosizing doesn't work when setting the frame directly? I tried calling various NSView and NSControl methods to force a relayout after changing the size, but had no success.


Thanks,
	Daniel.

[1]  Why? My column content stretches out to fill all available space and display a higher resolution representation, and I want to have a zoom operation that shows content in more detail (albeit only in 1 dimension) without changing the current window dimensions._______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Deprecated methods usage
  • Next by Date: Re: quick look question
  • Previous by thread: Re: Deprecated methods usage
  • Next by thread: Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?
  • Index(es):
    • Date
    • Thread