"Bill Schwab" <
[hidden email]> wrote in message
news:bj2gg5$e3sr9$
[hidden email]...
> Consider a modal dialog with lots of functionality, including some buttons
> that open additional modal dialogs. I would like to create a one-step way
> to open the main dialog and one of its "child" dialogs (effectively
clicking
> one of the main dialog's buttons for the user).
>
> #onViewOpened is called too soon (during #createOn:), and
#onViewActivated:
> is either called too soon, or not called the first time the dialog is
> activated (I suspect the former but have not confirmed it).
>
> So far, I have succeeded only by forking a thread and using a time delay
> :( Any ideas short of hacking the modal loop?
I am not sure if this is much better than forking, or if it will work, but
you might try something like this in the onViewOpened:
SessionManager inputState queueDeferredAction: [self openSomeOtherDialog].
It may be worth a try.
Chris