Re: Which method is called absolutetly last?
Re: Which method is called absolutetly last?
- Subject: Re: Which method is called absolutetly last?
- From: Uli Kusterer <email@hidden>
- Date: Wed, 19 Apr 2006 19:34:37 +0200
Am 19.04.2006 um 15:47 schrieb Nir Soffer:
Try to call the method from applicationDidFinishLaunching: using
performSelector:withObject:afterDelay:
There has *got* to be a better way than that to do it, right? If
you just wait a fixed delay, heavy load or a slow hard disk or
network volume could cause loading to take longer than the delay and
it would still fail. Isn't there some method or notification that
might help better?
A quick glance over the header offers
NSManagedObjectContextDidSaveNotification, though that only seems to
be called on a save...
Maybe you can use one of NSDocument's delegate methods? If you're
using an NSPersistentDocument, that is. Otherwise you may have to
just try and find out when exactly your model gets loaded and
override some application delegate method you know gets called
afterwards...
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden