Using setKeys:triggerChangeNotificationsForDependentKey with NSDictionary
Using setKeys:triggerChangeNotificationsForDependentKey with NSDictionary
- Subject: Using setKeys:triggerChangeNotificationsForDependentKey with NSDictionary
- From: "J. Scott Anderson" <email@hidden>
- Date: Tue, 1 Mar 2005 16:01:25 -0600
MyClass has a NSDictionary * properties ivar. How do I use the setKeys:triggerChangeNotificationsForDependentKey with the NSDictionary. I have successful using it with straight ivars. Here is what I current have:
+ (void)initialize
{
[MyClass setKeys:
[NSArray arrayWithObjects: @"properties.firstKeyl", nil]
triggerChangeNotificationsForDependentKey: @"properties.secondKey"];
}
When trying to run this the application exits with a signal 5 (SIGTRAP). I get "valueForUndefinedKey" errors. It is telling me it is not key value coding-compliant for the displayPatternValue1. Yes, I have been combing through the archives and the documentation. No. I have not found my answer. At least I have found nothing that I perceived as the answer. I am sure it is just a problem with asking the right question.
Thank you for any help or links to the answer.
_______________________________________________
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