Re: Setting up multiple Dependent Keys
Re: Setting up multiple Dependent Keys
- Subject: Re: Setting up multiple Dependent Keys
- From: Keith Renz <email@hidden>
- Date: Fri, 19 Nov 2004 00:39:33 -0500
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"];
}
To add more keys, add more objects to the array:
[Controller setKeys:
[NSArray arrayWithObjects:@"extendedPrice", @"extendedCost", @"anotherKey", @"yetAnotherKey", nil]
triggerChangeNotificationsForDependentKey:@"profit"];
You can't have duplicate +initialize (or any other) methods for any class, which is what you were trying to do.
Keith _______________________________________________
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