• 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: Detecting when fetch: finishes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting when fetch: finishes


  • Subject: Re: Detecting when fetch: finishes
  • From: Keary Suska <email@hidden>
  • Date: Wed, 3 Jun 2009 17:31:32 -0600

On Jun 3, 2009, at 5:12 PM, Ulai Beekam wrote:

I have an NSArrayController that, at the request of the user, can be given a new fetch predicate. To do that I use the setFetchPredicate: method. How can I detect when this predicate has been applied and the appropriate fetching is done? I have not come across any delegate method for it.

I suspect that this is made tricky because of the following quote from the docs under the fetch: method of NSObjectController (which by the way is a superclass of NSArrayController):

"Beginning with Mac OS X v10.4 the result of this method is deferred until the next iteration of the runloop so that the error presentation mechanism can provide feedback as a sheet."

So the problem is that it finishes somewhere in the next runloop iteration, making it harder to do some custom things after it finishes.


There isn't any way that I know that is more work than it is worth. Better to do the fetch yourself.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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


  • Follow-Ups:
    • RE: Detecting when fetch: finishes
      • From: Ulai Beekam <email@hidden>
References: 
 >Detecting when fetch: finishes (From: Ulai Beekam <email@hidden>)

  • Prev by Date: Detecting when fetch: finishes
  • Next by Date: RE: Detecting when fetch: finishes
  • Previous by thread: Detecting when fetch: finishes
  • Next by thread: RE: Detecting when fetch: finishes
  • Index(es):
    • Date
    • Thread