Re: Detecting when fetch: finishes
Re: Detecting when fetch: finishes
- Subject: Re: Detecting when fetch: finishes
- From: Kyle Sluder <email@hidden>
- Date: Wed, 3 Jun 2009 20:37:33 -0700
On Wed, Jun 3, 2009 at 6:21 PM, Keary Suska <email@hidden> wrote:
> I wonder if you can make an NSArrayController subclass, override
> -fetchWithRequest:merge:error: to just call super, and after the call (which
> should be synchronous), call your special post-processing method. Just a
> stab in the dark, but might work.
This won't work; NSArrayController doesn't run the runloop, it
schedules a selector for the next iteration. So your code will
execute right after super's implementation calls
-performSelector:afterDelay:, just like it would had you never
overridden -fetch: in the first place.
--Kyle Sluder
_______________________________________________
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