Re: Core Data and ordered relationships

2008-09-16 Thread Sean McBride
On 9/15/08 3:13 PM, Jamie Hardt said: >> b) add an attribute named 'index' (value 1 to 6) and code methods >> named >> employee1, etc. in my NSManagedObject subclass? > >Certainly do the second one, unless there's some factor in your >business logic that demands exactly six employees, but I can't

Re: Core Data and ordered relationships

2008-09-15 Thread Jamie Hardt
Hi- On Sep 15, 2008, at 2:55 PM, Sean McBride wrote: b) add an attribute named 'index' (value 1 to 6) and code methods named employee1, etc. in my NSManagedObject subclass? Certainly do the second one, unless there's some factor in your business logic that demands exactly six employees, b

Core Data and ordered relationships

2008-09-15 Thread Sean McBride
Hi all, There have been discussions in the past about the fact that relationships in Core Data are unordered (sets) instead of ordered (arrays). I have a vague question about this... In my model: entity 'Department' has a to-many relationship to entity 'Employee' named 'employees'. There are a