• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: (no subject) (From: Scot Gellock <email@hidden>)

  • Prev by Date: Re: Is there a convention...
  • Next by Date: Re: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
  • Previous by thread: Re: (no subject)
  • Next by thread: Getting folder icon image
  • Index(es):
    • Date
    • Thread