Re: When in the launch cycle does coredata data become available.
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