Am 22.01.2012 um 00:38 schrieb Arnaud Nicolet: > Greetings! > > The current use of beginSheetForDirectory is to show the dialog and continue > the code (i.e. it's not modal). For implementing a Save method, it makes > things hard to code (we need to “suspend” the current method (could be > FileSave or CancelClose), wait for the dialog to close, and continue the > method (that is. trigger the called method again (FileSave or CancelClose (by > closing the window again, or quitting the app), but this time by passing the > chosen file).
As you see in Apple's documentation for NSSavePanel class, we use this method: beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo: and there > A ShowModalSheetForDirectory method would be the missing method here, simply > because a NSSavePanel is meant to suspend the current method. Or is there a > workaround? Maybe simply do a loop and wait? do delayMBS 0.1 loop until done or something like that. Greetings Christian -- See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
