| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 10/25/07, Philip Mötteli <email@hidden> wrote:
>
> - (void)setGrades:(NSMutableArray *)theGrades;
> - (NSMutableArray *)grades;
> - (void)addGrade:(Grade *)aGrade;
You probably want your addGrade method to look like:
- (void)addGrade:(Grade *)aGrade
{
[self willChangeValueForKey:@"grades"];
[grades addObject:aGrade];
[self didChangeValueForKey:@"grades"];
}
Dave.
_______________________________________________
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
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
| References: | |
| >Key-Value-Observing and Collections (From: Philip Mötteli <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.