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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to