Question re program loop until an exit button clicked

Are there any examples available that show how best to stay in the app until user exits, via a button, or some other user key?

I am using the Twitter sample code as my learning platform.
Basically what I would want is that after the Twitter text has been sent/confirmed it would go back to the sign in.
Actually going to the dialog where the twitter text is created would be even better so that only one sign-in is needed per session.

I.e.
Sign in
and then loop until user exits
“You are about to post” dialog
then confirm dialog displays
that display will get some buttons (as soon as I figure out how), I.e. Continue, Exit
if continue is pressed I want to be back at the “You are about to post” dialog, where I will add some user input fields, hopefully.

Any code sampling you can suggest that would display something like this?

TIA - Heinz [import]uid: 6547 topic_id: 996 reply_id: 300996[/import]

The iPhone is event-driven. If you were to start a loop in your code, you would lock your thread *at the least* if not lock the gui.

You can simulate this by using a timer to check the status of whether or not the person is done. If you went that route, I would suggest a minimum of 500ms.

I don’t know enough about your code to know whether or not there is an event you can “catch” at the completion of your sign in process.

However, if you want to do something when the user presses a button, that one is pretty straightforward.

Scott [import]uid: 5659 topic_id: 996 reply_id: 2382[/import]

It’s the ‘event-driven’ part that’s giving me the challenge, and headache. Can’t seem to be able to get my head around that yet. Hard to teach an ol’ dog new tricks.

I’ll see what I can accomplish with buttons. That’ll be todays’ goal.

Heinz
[import]uid: 6547 topic_id: 996 reply_id: 2385[/import]

let us know if you need help

carlos [import]uid: 24 topic_id: 996 reply_id: 2409[/import]