Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Anthony Arthur <email@hidden>
- Date: Sun, 28 Jul 2002 02:56:32 -0400
From NSApplication docs:
beginModalSessionForWindow:
- (NSModalSession)beginModalSessionForWindow:(NSWindow *)aWindow
Sets up a modal session with the NSWindow aWindow and returns an
NSModalSession structure representing the session. In a modal session,
the application receives mouse events only if they occur in aWindow. The
NSWindow is made key and ordered to the front.
beginModalSessionForWindow: only sets up the modal session. To actually
run the session, use runModalSession:. beginModalSessionForWindow:
should be balanced by endModalSession:. Make sure these two messages are
sent within the same exception handling scope. That is, if you send
beginModalSessionForWindow: inside an NS_DURING construct, you must send
endModalSession: before NS_ENDHANDLER.
If an exception is raised, beginModalSessionForWindow: arranges for
proper cleanup. Do not use NS_DURING constructs to send an
endModalSession: message in the event of an exception.
A loop using these methods is similar to a modal event loop run with
runModalForWindow:, except the application can continue processing
between method invocations.
-b
On Saturday, July 27, 2002, at 08:00 PM, Scot Gellock wrote:
>
On 7/27/02 9:42 AM, "Martin Weil" <email@hidden> wrote:
>
>
> Hi List!
>
>
>
> How can I make a simple window modal, so that the user cannot access
>
> the
>
> menu or other windows?
>
>
>
> Regards,
>
> Martin
>
> --
>
> http://www.mweil.net
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
>
>
Take a look at:
>
http://www.cocoadev.com/index.pl?DisplayingSheets
>
>
Scot
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.