• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Canceling NSInvocationOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Canceling NSInvocationOperation
      • From: Chase Latta <email@hidden>
  • Prev by Date: NSTreeController -setSelectionIndexPaths: calls scrollRowToVisible:
  • Next by Date: Re: NSUnicodeStringEncoding
  • Previous by thread: Re: Canceling NSInvocationOperation
  • Next by thread: Re: Canceling NSInvocationOperation
  • Index(es):
    • Date
    • Thread