• 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: When in the launch cycle does coredata data become available.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When in the launch cycle does coredata data become available.


  • Subject: Re: When in the launch cycle does coredata data become available.
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 3 Mar 2008 08:30:25 -0800


On Mar 3, 2008, at 2:27 AM, Conor wrote:

Some of the setup methods are on a queue in the run loop and are done after
applicationDidFinishLaunching: (in this case the content object of your
array controller is not yet populated as the core data fetch hasn't been
done yet). Run your method by placing it on the queue during
applicationDidFinishLaunching with:
[self performSelector:@selector(methodThatWillDoSomethingWithMyServers:)
withObject:nil afterDelay:0.0];


There should be no need to do this -- there's a perfectly good documented way to perform the fetch immediately.


On Mar 2, 2008, at 9:43 PM, Adam Gerson wrote:

Thanks, this does directly address my question. Not exactly sure what
to do with it. I tried calling fetchWithRequest:merge:error: in
awakeFromNib and then trying to access the managed object, but that
didn't work.

Is the outlet to the array controller connected?

mmalc


_______________________________________________

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: When in the launch cycle does coredata data become available.
      • From: "Adam Gerson" <email@hidden>
References: 
 >Re: When in the launch cycle does coredata data become available. (From: Conor <email@hidden>)

  • Prev by Date: Typing attributes and the location of the insertion point
  • Next by Date: Re: Coredata - populating initial data on app load - best practices
  • Previous by thread: Re: When in the launch cycle does coredata data become available.
  • Next by thread: Re: When in the launch cycle does coredata data become available.
  • Index(es):
    • Date
    • Thread