Hi All,

I have started using CoreData and have a modeling question.

My model has a managed object "TASK", which shall be executed each day during a time period.

Therefore, I have added a startDate and an endDate as attributes:

        TASK
                - startDate
                - endDate

        
        
Now in this time period there are exceptions, when the task shall not be executed (e.g. holidays etc)

        TASK
                - startDate
                - endDate

                - exceptions
                                - day1
                                - day2
                                - day3


I thought on having a list of date objects containing the exceptions. But how should I model this? I cannot create a NSMutableArray to store the dates in the persistent store. Shall I use a MO class "DAY" and model the list as a to-many relationship?

        TASK                                                    
                - startDate                                             
                - endDate

                - exceptions  ------------->  DAY
                                                                  - date

Is this really necessary or is there a  more elegant way?

Any help/advice  appreciated.

Thanks,

Markus
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to