• 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: Issue when hiding NSTableColumn while resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue when hiding NSTableColumn while resizing


  • Subject: Re: Issue when hiding NSTableColumn while resizing
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 06 May 2012 00:22:27 -0700

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.


_______________________________________________

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: Issue when hiding NSTableColumn while resizing
      • From: Thibault Martin-Lagardette <email@hidden>
    • Re: Issue when hiding NSTableColumn while resizing
      • From: Lee Ann Rucker <email@hidden>
References: 
 >Issue when hiding NSTableColumn while resizing (From: Thibault Martin-Lagardette <email@hidden>)

  • Prev by Date: Thread never gets to fbDidLogin and accessToken is null when appDidBecomeActive after hit ok on fb login screen
  • Next by Date: Can record ID in iOS address book database change
  • Previous by thread: Issue when hiding NSTableColumn while resizing
  • Next by thread: Re: Issue when hiding NSTableColumn while resizing
  • Index(es):
    • Date
    • Thread