Re: Hiding NSTableColumns?
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.