Re: Modal session when opening a sheet
Re: Modal session when opening a sheet
- Subject: Re: Modal session when opening a sheet
- From: "Marcus S. Zarra" <email@hidden>
- Date: Sat, 24 Sep 2005 09:44:42 -0600
I might be confused about what you are trying to accomplish but
opening a sheet is not a blocking call. [NSApp beginSheet...] opens
the sheet then the code continues past it while the sheet is open for
the user. Therefore couldn't you just do your background processing
while the sheet is open without any additional code?
Or am I misunderstanding your goal?
On 9/24/05, Andrea at Redmatica <email@hidden> wrote:
> 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
>
_______________________________________________
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