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

Detecting when fetch: finishes


  • Subject: Detecting when fetch: finishes
  • From: Ulai Beekam <email@hidden>
  • Date: Wed, 3 Jun 2009 23:12:56 +0000
  • Importance: Normal

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.

Thanks, U.
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________

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: mmalc Crawford <email@hidden>
    • Re: Detecting when fetch: finishes
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: launchd detecting when an application is running
  • Next by Date: Re: Detecting when fetch: finishes
  • Previous by thread: Re: launchd detecting when an application is running
  • Next by thread: Re: Detecting when fetch: finishes
  • Index(es):
    • Date
    • Thread