• 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: contextual menu for a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contextual menu for a NSTableView


  • Subject: Re: contextual menu for a NSTableView
  • From: John Spicer <email@hidden>
  • Date: Fri, 19 Nov 2004 08:40:24 -0600

The user can't add new columns, only hide existing ones. I had hoped for generic code so I could have each table (and there are a lot) dynamically build it's menu when the window is opened/created, but it's not looking that way.

Looks like each window will have to have a list of all the original columns in the code, which is what I was hoping to avoid.

On Nov 18, 2004, at 11:09 PM, Sean McBride wrote:

John Spicer (email@hidden) on Thu, Nov 18, 2004 09:44 said:

I've figured out how to add a contextual menu to a view (I think). I've
also figured out how to get a list of the columns in the table.
However, I can't figure out how to get the columns that are not in the
table (i.e. the user may delete some from time to time).

Is the list of all possible columns known at build time? That is, the
user can remove columns, but can he create brand-new ones too? If not,
then just keep track of the list yourself, and add checkmarks to any that
are actually part of the table.


--
____________________________________________________________
Sean McBride, B. Eng                         email@hidden
Mac Software Designer               Montréal, Québec, Canada




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >contextual menu for a NSTableView (From: John Spicer <email@hidden>)
 >Re: contextual menu for a NSTableView (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Sorting Attributed Strings w/Bindings
  • Next by Date: Re: Resize Window with fixed ratio
  • Previous by thread: Re: contextual menu for a NSTableView
  • Next by thread: Passing arguments to threads?
  • Index(es):
    • Date
    • Thread