Re: Allowing cancel and progress but not updating display
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