• 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: Modal windows with a return type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal windows with a return type


  • Subject: Re: Modal windows with a return type
  • From: Andreas Schempp <email@hidden>
  • Date: Fri, 25 Apr 2003 10:22:22 +0200

I read you post again ;-)

For other windows, simply use [NSApp runModalForWindow:]

This is what apple hast written in the documentation:

NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
for (;;) {
if ([NSApp runModalSession:session] != NSRunContinuesResponse)
break;
}
[NSApp endModalSession:session];

read the documentation for this ;-)


Am Freitag, 25.04.03 um 07:06 Uhr schrieb Greg Hulands:

Hi,
I need to create a modal window like and NSOpenPanel that you can put in an if statement to see if a button has been click. Is this done by using a separate runloop to wait until the button is clicked or is it some other way?

Any pointers are greatly appreciated.

Regards,
Greg
_______________________________________________
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: 
 >Modal windows with a return type (From: Greg Hulands <email@hidden>)

  • Prev by Date: Re: Modal windows with a return type
  • Next by Date: Another NSTableView problem
  • Previous by thread: Re: Modal windows with a return type
  • Next by thread: Rendezvou
  • Index(es):
    • Date
    • Thread