FROM : Sean McBride
DATE : Wed Apr 23 20:26:21 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
DATE : Wed Apr 23 20:26:21 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

