CoreData - How to monitor progress during long fetch ?

  • Hi,

    PROBLEM : I am writing a CoreData app. When the app launches, about
    1500 instances of the same entity are created (ie loaded from an XML
    persistence store) in order to populate an
    NSTableView (using bindings). It takes a lot of time (about 5
    seconds) to load data into the table view. During the process, UI is
    frozen. So bad user experience ! How can I monitor the fetch process
    in order to display some kind of a progress indicator ?

    Thanks for your help.

    Mickaël Remars - mailto:<mremars...>
    Architecte des systèmes d'information
    NOZICAA (Groupe SIGIRE) - http://www.nozicaa.com
    20 rue de Sardaigne - Z.A. du Danemark - 72100 LE MANS
    Tel: +33 (0) 243 82 97 97
    Fax: +33 (0) 243 82 75 75
  • I would suggest a read of this document:

    http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles
    /cdPerformance.html


    Mike.

    On 2 Oct 2007, at 14:44, Mickaël Remars wrote:

    > Hi,
    >
    > PROBLEM : I am writing a CoreData app. When the app launches, about
    > 1500 instances of the same entity are created (ie loaded from an XML
    > persistence store) in order to populate an
    > NSTableView (using bindings). It takes a lot of time (about 5
    > seconds) to load data into the table view. During the process, UI is
    > frozen. So bad user experience ! How can I monitor the fetch process
    > in order to display some kind of a progress indicator ?
    >
    > Thanks for your help.
    >
    > Mickaël Remars - mailto:<mremars...>
    > Architecte des systèmes d'information
    > NOZICAA (Groupe SIGIRE) - http://www.nozicaa.com
    > 20 rue de Sardaigne - Z.A. du Danemark - 72100 LE MANS
    > Tel: +33 (0) 243 82 97 97
    > Fax: +33 (0) 243 82 75 75
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today