• 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: Hiding NSTableColumns?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding NSTableColumns?


  • Subject: Re: Hiding NSTableColumns?
  • From: Frank Midgley <email@hidden>
  • Date: Mon, 17 May 2004 14:45:13 -0500

On May 17, 2004, at 1:35PM, Moray Taylor wrote:

I just gave this a go, 0 doesn't work, it just makes it very thin, a few pixels wide, after a bit of experimentation, I found -3 does the job.
If I then do a setResizable:NO (Well, I'm a java boy, so it's setResizable(false) for me), it makes it effectively disappear, as it's not visible, and I can't resize it to get it back, nice!

My only concern is that this 'feature' may go away in future versions, I mean -3 is a little arbitrary, any lower a number and the table goes a bit weird.

You could probably come up with the -3 reliably by taking the intercell spacing and grid options into account but that's getting decidedly into hack territory. It's probably safer to go with actually removing the column(s) and re-adding when/if necessary.

-Frank

------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Hiding NSTableColumns? (From: Moray Taylor <email@hidden>)
 >Re: Hiding NSTableColumns? (From: Frank Midgley <email@hidden>)
 >Re: Hiding NSTableColumns? (From: Moray Taylor <email@hidden>)

  • Prev by Date: Free License Keys! (was Re: [ANN] FormMate v 1.0)
  • Next by Date: Re: Free License Keys! (was Re: [ANN] FormMate v 1.0)
  • Previous by thread: Re: Hiding NSTableColumns?
  • Next by thread: Fwd: Textfields, formatters, localize and using binding.
  • Index(es):
    • Date
    • Thread