Re: Modal windows with a return type
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.