Re: Another basic CoreData question

2010-07-09 Thread Jerry Krinock
On 2010 Jul 09, at 07:19, Keary Suska wrote: > On Jul 9, 2010, at 6:12 AM, Jerry Krinock wrote: > >> An interesting question is how this happens in the DepartmentAndEmployees >> sample code. When I create a document with an employee, save the file and >> dump it with sqlite3, it appears that

Re: Another basic CoreData question

2010-07-09 Thread Sean McBride
On Sat, 10 Jul 2010 05:22:46 +1200, gumbo...@mac.com said: >Thanks for the help guys. I have this working now, along with the double >items. Is there any way to avoid/workaround this problem. Or rather >another way to get a reference to the departments? The workaround is to not fetch in awakeFrom

Re: Another basic CoreData question

2010-07-09 Thread gumboots
Thanks for the help guys. I have this working now, along with the double items. Is there any way to avoid/workaround this problem. Or rather another way to get a reference to the departments? Cheers Rob On 10/07/2010, at 2:26 AM, Sean McBride wrote: > On Fri, 9 Jul 2010 05:12:10 -0700, Jerry K

Re: Another basic CoreData question

2010-07-09 Thread Sean McBride
On Fri, 9 Jul 2010 05:12:10 -0700, Jerry Krinock said: >>> Using the standard Employee/Department example, Whats the best way to >set a default department for an Employee? >>> So that every employee is created with a relationship to the >"mailRoom" department. >> >> Probably to add some custom cod

Re: Another basic CoreData question

2010-07-09 Thread Keary Suska
On Jul 9, 2010, at 6:12 AM, Jerry Krinock wrote: > An interesting question is how this happens in the DepartmentAndEmployees > sample code. When I create a document with an employee, save the file and > dump it with sqlite3, it appears that the Employee is related to the > Department. But I l

Re: Another basic CoreData question

2010-07-09 Thread Jerry Krinock
On 2010 Jul 08, at 19:28, Noah Desch wrote: > On Jul 8, 2010, at 7:33 PM, gumbo...@mac.com wrote: > >> Using the standard Employee/Department example, Whats the best way to set a >> default department for an Employee? >> So that every employee is created with a relationship to the "mailRoom" >

Re: Another basic CoreData question

2010-07-08 Thread Noah Desch
On Jul 8, 2010, at 7:33 PM, gumbo...@mac.com wrote: > Using the standard Employee/Department example, Whats the best way to set a > default department for an Employee? > So that every employee is created with a relationship to the "mailRoom" > department. Probably to add some custom code to

Another basic CoreData question

2010-07-08 Thread gumboots
Using the standard Employee/Department example, Whats the best way to set a default department for an Employee? So that every employee is created with a relationship to the "mailRoom" department. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)