Implement these to manipulate your instance variable (which you must
rename to something other than grades).
Now all methods of NSMutableArray are applicable to your grades
property and will automatically generate
the appropriate key/value observations. For example
Using KVO, I want to be notified not only, when the old grades
collection object (NSMutableArray) is replaced, but also, when a
Grade instance is added to the grades collection (something like
"[grades addObject:aGrade]").
The first case is easy, because I know the attribute name (grades),
which gives the key. But for the second, I don't know the attribute
name, so I can't add an observer.
Can anybody explain me how to do this?
Thanks
Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com