• 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: CheckEventQueueForUserCancel() equivalent in Cocoa ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CheckEventQueueForUserCancel() equivalent in Cocoa ?


  • Subject: Re: CheckEventQueueForUserCancel() equivalent in Cocoa ?
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 03 Jul 2012 15:23:34 -0500

On Jul 3, 2012, at 10:16 AM, Eric Matecki wrote:

> everything is in the subject, what's the equivalent for CheckEventQueueForUserCancel() in Cocoa ?

There are multiple ways to implement a user cancel operation, depending on your design. Probably the easiest way to do it is to put your worker-thread code in a subclass of NSOperation, and call -cancel on it if the user clicks on your Cancel button or does something else that should cancel the operation. You can then check the isCancelled property of the NSOperation in your worker code to determine if the operation is cancelled or not.

> Keep intel OUTSIDE my Mac !
> Hiii !!! I can see Intel chips creeping around my G5 !

A little late for that, don’t you think?

Charles

_______________________________________________

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: CheckEventQueueForUserCancel() equivalent in Cocoa ?
      • From: Eric Matecki <email@hidden>
References: 
 >CheckEventQueueForUserCancel() equivalent in Cocoa ? (From: Eric Matecki <email@hidden>)

  • Prev by Date: Re: iCloud/Core Data docs for Mac ?
  • Next by Date: [MEET] Toronto Cocoaheads / tacow - July 10
  • Previous by thread: CheckEventQueueForUserCancel() equivalent in Cocoa ?
  • Next by thread: Re: CheckEventQueueForUserCancel() equivalent in Cocoa ?
  • Index(es):
    • Date
    • Thread