On 4/25/15, Roland King <r...@rols.org> wrote: > There are delegate methods for UIActionSheet and UIAlertView which tell you > when the animation has finished. > > xxx:didDismissWithButtonIndex:
You Da Man. I am closer to understanding why this is not working. my call to "[alertView show]" returns immediately. At some later point the UIAlertView actually appears on screen. If I then tap a button, the UIAlertViewDelegate's clickedButtonAtIndex method is called. However the logic I presently have in my code is: NSString baseName = [ModalAlertView copyFilename]; where copyFilename is a class method. If it calls [alertView show], which returns immediately then I need a way to wait around until the button is clicked. At that point I check for an existing file and potentially show another alert - without a text field - to ask whether they want to overwrite an existing file. I expect I can work out logic that will accomplish what I need but this must be a common problem, can anyone suggest a solution to this? Another way to put it is that I want to prompt for a filename, and verify any overwrite, in a synchronous manner. -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com