Enabling dataCells with bindings
Enabling dataCells with bindings
- Subject: Enabling dataCells with bindings
- From: John Lombardo <email@hidden>
- Date: Fri, 7 May 2004 17:03:15 +0800
Okay, I've almost got the hang of this binding business, though the Key
Paths are still messing with me.
I have a table with two columns...
one, with the identifier @"enabled" contains checkboxes.
the other, with the identifier @"operator" contains popup buttons
The idea is that if a checkbox is selected or deselected (this part
works fine) then the popup button should enable or disable accordingly.
I would have thought that something like this would do the job:
[[[fieldsTable tableColumnWithIdentifier:@"operator"] dataCell]
bind:@"enabled"
toObject: fieldController
withKeyPath:@"arrangedObjects.enabled.@boolValue"
options:nil];
It is my belief that due to my inexperience with defining key paths, I
am in fact just inventing things and making a complete arse of it. Does
this sound about right?
Cheers,
john
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.