Re: Issue when hiding NSTableColumn while resizing
Re: Issue when hiding NSTableColumn while resizing
- Subject: Re: Issue when hiding NSTableColumn while resizing
- From: Thibault Martin-Lagardette <email@hidden>
- Date: Tue, 08 May 2012 18:10:58 +0000
- Thread-topic: Issue when hiding NSTableColumn while resizing
On 6 May 2012, at 08:22, Quincey Morris wrote:
On May 1, 2012, at 06:40 , Thibault Martin-Lagardette wrote:
The problem in the end is that not only do I have a visual glitch, but this
also feels like a very hacky/dirty solution, and hence, not the way to go.
I feel like I probably should not be trying to hide columns while some others
are resized. It works most of the time though, so this is very confusing.
What happens if you *don't* hide columns at all, but change your resizing code to set the width to 0 when a "hideable" column reaches its nominal min width? (Of course, you'd have to set the actual minWidth to 0 first.)
If it turns out you must hide columns for other reasons (for example, the "hideable" columns are editable), then you could arrange to actually hide them at the end of the resizing process -- and you'd have to show them at the start, I suppose.
Alternatively, assuming the table doesn't use a horizontal scroller, how about pushing "collapsed" columns (columns that have gone below their min width) out of the table view's bounds by resizing the non-collapsed columns? I'm not sure, but I think this might work given the position and order in which your columns should disappear.
I haven't tried the `width = 0' instead of hidden, but I'm a little afraid of
how hacky this sounds, haha. And also afraid we might still see the columns
separators stacked onto each other.
Also, we do need to have the resize being live, and it is actually the root
problem of all this, otherwise resizing at the end of the resize process works
perfectly well. But this is not the expected behavior, haha.
But yes, there is, in fact, no horizontal scroller, so this is definitely a
possible alternative, though maybe a little more complex because of other
implications, but still feasible.
Thanks for the input!
Sincerely,
--
Thibault Martin-Lagardette
_______________________________________________
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