• 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: Ulai Beekam <email@hidden>
  • Date: Thu, 4 Jun 2009 09:45:30 +0000
  • Importance: Normal

Let me explain what I'm trying to do by referring to iTunes.


Imagine that iTunes has only one underlying NSArrayController and only one table view in the UI.


And image that when you click on a smart playlist, all that happens is that new fetch predicate is set for the underlying array controller (and column layout & sorting of the table view changes).


This results in the problem of the table displaying BEFORE the fetch predicate actually executes (in the next runloop iteration). This results in the user visually seeing on screen the fetch results changing (which I don't want). What I would have wanted to do is to, perhaps, hide the table view for a brief moment while the fetching completes. I can easily hide it within the outlineViewSelectionIsChanging: delegate method. But, as we know by now, there is no way to know when to unhide the table view again; in other words, no way to know when the fetching with the new fetch predicate completes.


How would you get around this problem?




----------------------------------------> From: email@hidden
> Date: Wed, 3 Jun 2009 22:41:48 -0700
> To: email@hidden
> Subject: Re: Detecting when fetch: finishes
>
>
> On Jun 3, 2009, at 4: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.
>
> What are you trying to achieve?
> See
>>
>
> mmal

_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx_______________________________________________

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>
References: 
 >Detecting when fetch: finishes (From: Ulai Beekam <email@hidden>)
 >Re: Detecting when fetch: finishes (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: Disc recording framework estimatedLength
  • Next by Date: RE: Find default application for file of particular extension
  • Previous by thread: Re: Detecting when fetch: finishes
  • Next by thread: Re: Detecting when fetch: finishes
  • Index(es):
    • Date
    • Thread