• 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: How do I know when my Core Data app is up and running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do I know when my Core Data app is up and running?
      • From: mmalc crawford <email@hidden>
    • Re: How do I know when my Core Data app is up and running?
      • From: Matt Neuburg <email@hidden>
    • Re: How do I know when my Core Data app is up and running?
      • From: Jim Correia <email@hidden>
References: 
 >Re: How do I know when my Core Data app is up and running? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Stopping double clicking of a file
  • Next by Date: Re: Stopping double clicking of a file
  • Previous by thread: Re: How do I know when my Core Data app is up and running?
  • Next by thread: Re: How do I know when my Core Data app is up and running?
  • Index(es):
    • Date
    • Thread