Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
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