Re: Modal window that does not block the main runloop
Re: Modal window that does not block the main runloop
- Subject: Re: Modal window that does not block the main runloop
- From: Ken Thomases <email@hidden>
- Date: Sat, 8 May 2010 00:21:10 -0500
On May 7, 2010, at 2:26 PM, Jens Alfke wrote:
> On May 7, 2010, at 10:28 AM, David Alter wrote:
>
>> I need to bring a window up that is modal for the application (i.e. you can
>> not make other windows active, and you can not use menus while this window
>> is up). However after bringing the modal window up I want control returned
>> to the main runloop, not a modal runloop.
>
> You want -beginModalSessionForWindow:.
I'm not sure that will help. With modal sessions, you still need to run an inner run loop. You don't return back to the main run loop.
Mind you, I'm not sure why the OP thinks he needs that, regardless of the structure of his original Carbon code.
Regards,
Ken
_______________________________________________
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