Setting up multiple Dependent Keys
Setting up multiple Dependent Keys
- Subject: Setting up multiple Dependent Keys
- From: "J. Scott Anderson" <email@hidden>
- Date: Thu, 18 Nov 2004 23:25:01 -0600
I am struggling with an issue in Cocoa Bindings. Example code that obviously works fine:
+ (void)initialize
{
[Controller setKeys:
[NSArray arrayWithObjects:@"extendedPrice", @"extendedCost", nil]
triggerChangeNotificationsForDependentKey:@"profit"];
}
If I also want to have additional fields (Dependent Keys I would think), then how do I do it. I tried making multiple versions of the above code but with different Dependent Keys and with changes to the Keys. That results in error messages telling me that I have redefined the "initialize" method and that I have duplicate "initialize" methods among other errors. I also tried adding in additional Keys and/or adding in additional Dependent Keys–nothing works for me.
I am obviously on the wrong path with this. Can anyone set me straight? _______________________________________________
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