On 10/10/2009, at 9:17 AM, A B wrote:

Long-held habits regarding best practices regarding relational integrity are making me reluctant to stick a "parentPerson" ivar in each Note object, otherwise the solution would be simple: Just create another property which has code in the getter that calls back to the parent object (the structure of which would then have to be known to the Note object) for the birthday, does the necessary math and then returns the result.

Why not create the parentPerson ivar the Note object? Since you want the Note to access a property of the parent Person, this seems logical to me and, as you said, makes the solution simple.

Tom
BareFeet

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to