> Message: 4
> Date: Sat, 12 Feb 2011 12:43:26 -0800
> From: Chase Latta <[email protected]>
> 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 protected])

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 [email protected]

Reply via email to