• 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: dynamically adding NSTableColumns while using bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamically adding NSTableColumns while using bindings


  • Subject: Re: dynamically adding NSTableColumns while using bindings
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 1 Aug 2007 16:41:50 -0400
  • Organization: Rogue Research

On 8/1/07 4:17 PM, Paul Gribble said:

>So I have figured out from the various demo code, etc, how to use
>KVC-compliant setters and getters in myDocument.m, which enables me very
>easily, with very little code, to implement a NSTableView, use bindings to
>bind each NSTableColumn to an NSArrayController, and bind each
>NSArrayController to an NSMutableArray instance variable in myDocument.m.
>
>Here's my question: What if I want the user to be able to dynamically add or
>remove columns? How do I set things up using bindings so that when the user

This has been discussed on this list in the past, you should be able to
find discussions in the archives.  As I recall, one solution is to have
all the columns in the nib, bind them up, then simply hide them at run
time if you don't want them.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

  • Follow-Ups:
    • Re: dynamically adding NSTableColumns while using bindings
      • From: "Paul Gribble" <email@hidden>
References: 
 >dynamically adding NSTableColumns while using bindings (From: "Paul Gribble" <email@hidden>)

  • Prev by Date: Re: dynamically adding NSTableColumns while using bindings
  • Next by Date: Re: dynamically adding NSTableColumns while using bindings
  • Previous by thread: Re: dynamically adding NSTableColumns while using bindings
  • Next by thread: Re: dynamically adding NSTableColumns while using bindings
  • Index(es):
    • Date
    • Thread