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:17:29 +0200
if you run a modal NSOpenPanel like this: [NSOpenPanel
runModalForDirectory:(NSString *)directory file:(NSString *)filename
types:(NSArray *)fileTypes]
this returns an integer value you can use something like this:
if( [NSOpenPanel runModalForDirectory:****.....] == NSOKButton ) {
/* do something */
}
If you use a sheet, you have to set a didEndSelector
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.