• 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 & Showing Table View Columns?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding & Showing Table View Columns?


  • Subject: Re: Hiding & Showing Table View Columns?
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 26 Nov 2006 11:53:26 -0800
  • Thread-topic: Hiding & Showing Table View Columns?

On Sun, 26 Nov 2006 13:14:42 -0500, Karl Moskowski <email@hidden>
said:
>I've been trying to figure out a bindings-safe way hide and show
>columns in a Core Data-fed NSTableView.
>
>Googling around, I found Malcolm Crawford's page on Cocoa Bindings
>Examples and Hints at <http://homepage.mac.com/mmalc/CocoaExamples/
>controllers.html>. There, he writes, "It is possible to add table
>columns dynamically to a table view, and to establish bindings on the
>fly. In many cases, however, if it's possible to do, it is likely to
>be easier simply to create and bind the full table view in Interface
>Builder and hide those columns you don't want."
>
>I've laid out my table view with all the columns showing as he
>suggested, but I can't find the IB setting or binding to actually
>hide a column.

There is no such setting or binding. To remove a column, remove it:

<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Cla
sses/NSTableView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSTabl
eView/removeTableColumn:>

So, to add a column, add it and bind it in code. To remove a column, unbind
it and remove it in code.

There has been lots of talk about this, so please check the archives. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Re: Saving a core data model to persistent store makes application hang
  • Next by Date: Re: Mysterious run time error
  • Previous by thread: Hiding & Showing Table View Columns?
  • Next by thread: Re: Saving a core data model to persistent store makes application hang
  • Index(es):
    • Date
    • Thread