Re: NSTableView - hiding columns
Re: NSTableView - hiding columns
- Subject: Re: NSTableView - hiding columns
- From: Ian Jackson <email@hidden>
- Date: Fri, 11 Apr 2008 22:55:02 +1200
What is the effect of using:
- (void)removeTableColumn:(NSTableColumn *)aTableColumn ?
I assume this just removes the column and doesn't affect the
datasource. And you can use the corresponding method:
- (void)addTableColumn:(NSTableColumn *)aColumn
When the need arises to reshow it.
Ian.
On 11/04/2008, at 10:28 PM, Valentin Dan wrote:
The number of columns is dynamic as are the columns I need to
hide ... it all depends on the settings & access rights of the user.
___________________________________________________________________
Valentin Dan, Software Developer Direct: +1 905 886
1833 ext.3047
Email: email@hidden Office: +40
356-710158
Masstech Group Inc. Fax: +40
256-220912
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.
-----Original Message-----
From: Ian Jackson [mailto:email@hidden]
Sent: 11 aprilie 2008 13:26
To: Valentin Dan
Subject: Re: NSTableView - hiding columns
Can't you just set the number of columns you want for your table in
IB?
Ian.
On 11/04/2008, at 7:37 PM, 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
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.12/1372 - Release Date:
10.04.2008 17:36
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