On Sat, 05 Mar 2011 21:33:43 -0600, Shane 
<software.research.developm...@gmail.com> said:
>I then see that the "NSOperationQueue Class Reference" says this about
>addOperation: ...
>"Similarly, this method throws an NSInvalidArgumentException exception
>if the operation is currently executing or has already finished
>executing."

So they can't be reused.

>So it has finished executing, and I'd like to know how to execute it
>again

You just quoted the docs as saying you *can't* "execute it again".

> but w/o having to build a new object

If you want another NSOperation you're going to *have* to build a new object. 
Your reluctance to do so (and even to accept what the docs are plainly telling 
you) suggests you may just need to refactor somehow. m.

--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________

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