• 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
awakeFromInsert rules: ok to fetch and create other managed objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Next by Date: Re: Using OSMemoryBarrier() with KVO
  • Previous by thread: Re: NSImage and NSImageView issues (not drawing correctly)
  • Next by thread: A Cocoa means to detect SysPref 'Enable access for assistive devices"
  • Index(es):
    • Date
    • Thread