Re: Canceling NSInvocationOperation
Re: Canceling NSInvocationOperation
- Subject: Re: Canceling NSInvocationOperation
- From: Matt Neuburg <email@hidden>
- Date: Sun, 13 Feb 2011 14:16:00 -0800
> Message: 4
> Date: Sat, 12 Feb 2011 12:43:26 -0800
> From: Chase Latta <email@hidden>
> Subject: Canceling NSInvocationOperation
>
> I guess the root of my question is how do I access the
> operation from within my method that I am passing to
> initWithTarget:selector:object when I create my invocation operation?
(1) Don't let go of the operation in the first place; keep a reference to it when you create it (even though it is also being kept inside the NSOperationQueue).
and/or...
(2) Use KVO. "isCancelled" is observable.
m._______________________________________________
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