• 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: Cocoa-dev Digest, Vol 7, Issue 307
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 7, Issue 307


  • Subject: Re: Cocoa-dev Digest, Vol 7, Issue 307
  • From: Alexander Bokovikov <email@hidden>
  • Date: Sun, 14 Mar 2010 14:20:20 +0500


On Sat, 13 Mar 2010 at 20:23:40 -0800 Quincey Morris wrote:

You might want to choose a different run loop mode, if you have special requirements. NSEventTrackingRunLoopMode is sufficient to allow keystrokes and mouse clicks to be processed, so that you can have a UI (say, Esc key or button) to cancel the procedure if you want.


What is the difference between different modes? Is it performance or whatever else?

On Sat, 13 Mar 2010 at 22:49:45 -0600 Ken Thomases wrote:

You should also see if -beginModalSessionForWindow:/- runModalSession:/-endModalSession: makes sense for your situation. It does require that you can do the time-consuming task in discrete chunks.

Do you have in mind that user can close a modal window while this task is executed? OK. I'll disable the "Close" button of the window and leave "Cancel" button active. Clicking on Cancel my time-consuming task will be aborted after the nearest iteration. Hope it will be enough.


Thanks.
_______________________________________________

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


  • Prev by Date: Re: Populating TableView with Web Services in Cocoa
  • Next by Date: Cacheing optimisation in valueForKey:
  • Previous by thread: Re: #include CommonStrings.txt - 'no such file' error
  • Next by thread: Cacheing optimisation in valueForKey:
  • Index(es):
    • Date
    • Thread