• 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: Allowing cancel and progress but not updating display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allowing cancel and progress but not updating display


  • Subject: Re: Allowing cancel and progress but not updating display
  • From: Kevin Hoctor <email@hidden>
  • Date: Sat, 10 Mar 2007 18:31:38 -0600

On Mar 10, 2007, at 2:37 PM, Andrew Madsen wrote:

I do something similar (from a user perspective) in one of my apps. Instead of using a separate thread for the import, I simply put up a window and run it as a modal session. This way, I can make it so the progress panel continues to respond to events during the import process. Check out the docs for the NSApp methods beginModalSessionForWindow: and runModalSession:.

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSApplication_Class/Reference/ Reference.html#//apple_ref/occ/instm/NSApplication/runModalSession:>
<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSApplication_Class/Reference/ Reference.html#//apple_ref/occ/instm/NSApplication/ beginModalSessionForWindow::>

That seems to work perfectly Andrew! Thank you for the fast response!!!

Peace,

Kevin Hoctor
email@hidden
No Thirst Software LLC
http://nothirst.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Allowing cancel and progress but not updating display (From: Kevin Hoctor <email@hidden>)
 >Re: Allowing cancel and progress but not updating display (From: Andrew Madsen <email@hidden>)

  • Prev by Date: Re: init vs awakefromnib
  • Next by Date: Re: init vs awakefromnib
  • Previous by thread: Re: Allowing cancel and progress but not updating display
  • Next by thread: Need help with setNeedsDisplay
  • Index(es):
    • Date
    • Thread