Re: How do I know when my Core Data app is up and running?
Re: How do I know when my Core Data app is up and running?
- Subject: Re: How do I know when my Core Data app is up and running?
- From: "Arthur C." <email@hidden>
- Date: Wed, 04 Oct 2006 22:51:53 +0200
What I do is use delayed performance. This gives everything a chance to
sync
up - your next event comes in when the data is loaded. So, here's how my
awakeFromNib goes:
[self->entries prepareContent];
[self performSelector:@selector(finishAwaking:) withObject:nil
afterDelay:0.1];
and then (in finishAwakening:):
[self->entries setSelectionIndex: (ct-1)];
[self->window makeKeyAndOrderFront:self];
Ah, that's exactly the kind of thing I was looking for. Although I would
have expected Core Data to have its own 'finishAwakening' method... The line
containing performSelector: afterDelay: will be sufficient for what I need.
The notation in the other lines is unknown to me... what does
'self->entries' mean? I was planning to invoke the array controller itself.
Unfortunately I get the Spinning Cursor of Death while waiting for the data
to load, but that's a different matter. m.
Well, I'll survive the spinning cursor if it lasts only 0.1 seconds.
Thanks for the reply,
Arthur C.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_________________________________________________________________
Live Search, for accurate results! http://www.live.nl
_______________________________________________
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