• 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: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.

References: 
 >Modal windows with a return type (From: Greg Hulands <email@hidden>)

  • Prev by Date: Re: Global Access Controls ?
  • Next by Date: Re: Modal windows with a return type
  • Previous by thread: Modal windows with a return type
  • Next by thread: Re: Modal windows with a return type
  • Index(es):
    • Date
    • Thread