Modal session when opening a sheet
Modal session when opening a sheet
- Subject: Modal session when opening a sheet
- From: Andrea at Redmatica <email@hidden>
- Date: Sat, 24 Sep 2005 11:15:42 +0200
My application has to do some background work while a sheet is open.
Using NSThreads in this case should be avoided for a number of reasons.
I would like to use a modal session, with my process loop calling
periodically
[NSApp runModalSession:(NSModalSession)session]
The problem is how to get the NSModalSession value for the sheet
session.
While the standard beginModalSessionForWindow: returns an
NSModalSession value, the
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
method i need to use returns void.
(suggestion: wouldn't it make sense if it returned the NSModalSession?)
Any idea on how to recover the NSModalSession value for the current
sheet?
(Or maybe i simply overlooked something?)
Andrea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden