On Aug 14, 2015, at 5:23 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote:
> I'm trying to automatically re-queue an NSInvocationOperation to an > NSOperationQueue every n seconds, but I can't get it to work. From the NSOperation class overview: "An operation object is a single-shot object—that is, it executes its task once and cannot be used to execute it again." Among other reasons, the behavior of -isFinished and -isCancelled dictate this. Those are only allowed to transition from one value to the other at most once. You'll need to create a new operation each time you want to queue a particular invocation. Regards, Ken _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com