• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another basic CoreData question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another basic CoreData question


  • Subject: Re: Another basic CoreData question
  • From: Noah Desch <email@hidden>
  • Date: Thu, 8 Jul 2010 22:28:29 -0400


On Jul 8, 2010, at 7:33 PM, email@hidden 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 AwakeFromInsert in your employee NSManagedObjectSubclass to set its own department.

-Noah_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another basic CoreData question
      • From: Jerry Krinock <email@hidden>
References: 
 >Another basic CoreData question (From: email@hidden)

  • Prev by Date: Re: NSXMLParser parses line feeds in attribute strings as spaces
  • Next by Date: Re: NSXMLParser parses line feeds in attribute strings as spaces
  • Previous by thread: Another basic CoreData question
  • Next by thread: Re: Another basic CoreData question
  • Index(es):
    • Date
    • Thread