awakeFromInsert rules: ok to fetch and create other managed objects?
awakeFromInsert rules: ok to fetch and create other managed objects?
- Subject: awakeFromInsert rules: ok to fetch and create other managed objects?
- From: "Sean McBride" <email@hidden>
- Date: Wed, 23 Apr 2008 14:26:21 -0400
- Organization: Rogue Research
Hi all,
I've been reading the archives for hours, trying to figure out the
'rules' for what can and cannot be done in awakeFromInsert.
1) Is it ok to execute a fetch from awakeFromInsert? One might want to
do this to set a default property value that depends on other objects'
state. It seems the answer is no.
2) Is it ok to create other managed objects in awakeFromInsert? One
might want to do this to set initial relationships. It seems the answer
is yes.
I'm hoping someone can confirm/deny these.
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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