Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-17-2008, 04:07 PM   #1 (permalink)
New Member
 
Join Date: May 2008
Posts: 49
Default Is there a way to restart your application?

Does anyone know if there is a way to restart your application - basically unload the old copy, read in a new one and start it from the beginning?

It would be like the execv() system call in Unix with the name of the application.

Many thanks for your thoughts.

D
David H Dennis is offline   Reply With Quote
Old 09-18-2008, 04:51 AM   #2 (permalink)
I am evil trapper
 
Join Date: Jul 2008
Location: London
Posts: 299
Default

I very much doubt it
trapper is offline   Reply With Quote
Old 09-18-2008, 05:06 AM   #3 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Well you could modify your main to restart the application loop under certain conditions. So you cause your application to release and quite itself and immediately afterwards start it up again from main.

But even restarting does not save you the work of proper memory management.

Also, why would you want to do that? It would probably confuse your user and make him think your program crashed.
Oliver Drobnik is offline   Reply With Quote
Old 10-06-2008, 08:35 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 36
Default

My app hast a session (login). And a "logout" should reset the whole application and start at the first xib = login.

It "works" with
Code:
initWithNibName
but then is there a backButton and all my other button logic won't work.

There must be an autostart function because if i build my app to device it starts automaticaly.

Any ideas?
Black Scyther is offline   Reply With Quote
Reply

Bookmarks

Tags
application, restart

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 248
24 members and 224 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Dominus, dre, glenn_sayers, HemiMG, JasonR, karlam963, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0