Re: NSTableView - hiding columns
Re: NSTableView - hiding columns
- Subject: Re: NSTableView - hiding columns
- From: Laurent Cerveau <email@hidden>
- Date: Fri, 11 Apr 2008 12:05:29 +0200
On 10.5 you should b able to hide directly (NSTableColumn setHidden
method). . Otherwise the best way is to keep an NSArray around (for
example in a subclass of NSTableView) where you add the column you
want to hide. Then when you hide a column you add it to this array and
delete it from the tableColumns array. As it is retained in your
array you do not need to recreate everything each time and simply swap
it between the 2 NSArray
HTH
laurent
On Apr 11, 2008, at 9:37 AM, Valentin Dan wrote:
Hi,
I have a table view that has visible vertical lines between columns.
I’m trying to hide a column and I’m probably / certainly going about
it the wrong way.
Currently the only way I found to hide it was to set it’s width &
minimum width to 0 (I still need to work with it’s data in the
background, I just don’t want the user to see the column so deleting
it from the dataSource is not an option).
The problem here is that the vertical lines do not disappear and
although the width is 0, a small space remains and the aspect of
multiple vertical column separators in the middle of the list is not
pleasant.
Is there a better way to do this?
Thanks !
___________________________________________________________________
Valentin Dan, Software Developer Direct: +1 905 886
1833 ext.3047
Email: HYPERLINK "mailto:email@hidden"email@hidden
Office: +40 356-710158
Masstech Group Inc. Fax: +40
256-220912
HYPERLINK "http://www.masstechgroup.com/"http://www.masstechgroup.com
THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN
PRIVILEGED OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE
IS STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR,
PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS.
PLEASE THEN DELETE THE ORIGINAL MESSAGE. THANK YOU.
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.12/1372 - Release Date:
10.04.2008 17:36
_______________________________________________
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
_______________________________________________
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