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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to