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

Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings


  • Subject: Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
  • From: mmalc crawford <email@hidden>
  • Date: Wed, 1 Aug 2007 19:00:00 -0700


On Aug 1, 2007, at 5:57 PM, Paul Gribble wrote:

- (IBAction)addColumn:(id)sender
{
NSTableColumn *newColumn = [[[NSTableColumn alloc] init] autorelease];
[newColumn bind:@"value" toObject:dataController withKeyPath:@"
arrangedObjects.newcol" options:nil];
[dataTable addTableColumn: newColumn];
}


You seem to want simply to allow the user to add an arbitrary column to the table view.

This is a different situation to that many others have (and that generally discussed elsewhere) where the table view has a fixed set of columns but the user may choose to view/hide an arbitrary selection from that set (like Mail's columns). This is more problematic, especially if you also want to support localisation...

... although this is likely to become an issue at least in part for you if you want to allow the user to specify a column title, and then map the column title to the key etc...

mmalc

_______________________________________________

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


References: 
 >dynamically adding NSTableColumns while using bindings (From: "Paul Gribble" <email@hidden>)
 >Re: dynamically adding NSTableColumns while using bindings (From: "Sean McBride" <email@hidden>)
 >Re: dynamically adding NSTableColumns while using bindings (From: "Paul Gribble" <email@hidden>)
 >Re: dynamically adding NSTableColumns while using bindings (From: "I. Savant" <email@hidden>)
 >[SOLVED] Re: 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: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
  • Next by thread: Re: dynamically adding NSTableColumns while using bindings
  • Index(es):
    • Date
    • Thread