Re: programmatically binding to a NSTableColumn
Re: programmatically binding to a NSTableColumn
- Subject: Re: programmatically binding to a NSTableColumn
- From: Ron Lue-Sang <email@hidden>
- Date: Mon, 21 Aug 2006 16:41:22 -0700
[aTableColumn bind:NSValueBinding toObject:yourArrayController
withKeyPath:@"yourNewKey" options:nil]
I assume that the "New Key" you describe is a key that the model
objects in your arraycontroller are key value coding compliant for.
By passing nil for the options dictionary, you're asking for the same
behaviour/settings you'd get if you created the binding in IB and
didn't fiddle with any of the pre-set options.
On Aug 21, 2006, at 3:48 PM, email@hidden wrote:
Message: 8
Date: Mon, 21 Aug 2006 14:00:10 -0700 (PDT)
From: joe OneNinetyTwo <email@hidden>
Subject: programmatically binding to a NSTableColumn
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=iso-8859-1
I am adding a NSTableColumn to a tableview ...
NSTableColumn *aTableColumn = [[NSTableColumn alloc]
initWithIdentifier: @"newcolumn"];
[tableView addTableColumn:aTableColumn];
and would like to add a new key to the
NSArrayController that controls pre-existing
tablecolumns, and bind that new key to tableColumn I
just added. I've searched the Cocoa Bindings
Programming Topics and Reference, and I can't seem to
find how I do this programmatically.
Thanks - Phil
_______________________________________________
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