Correct Time to Write Extra code on Shutdown
Correct Time to Write Extra code on Shutdown
- Subject: Correct Time to Write Extra code on Shutdown
- From: Jerrod Fowkes <email@hidden>
- Date: Fri, 28 Apr 2006 14:06:38 -0700 (PDT)
Hello,
First off, thank you everyone for the tips on where to write data and/ or state files for cocoa applications.
I have an application that loads some information from a file on startup, and needs to write to a file on startup. These things are basically configuration settings for the application. Well, currently I load the information in the 'init' of my ApplicationController. Is this the correct and optimal way of doing things? Maybe it should be awakeFromNib? Also I need the optimal way of storing the data before the application shuts down. I am currently throwing around the idea of doing this in the dealloc. From a coding / engineering / cocoa application specialist perspective, is this the most horrible way or the most feasible?
-Jerrod Fowkes
p.s. I ask these questions only because as time goes on, I am interested in the Cocoa culture and would like to learn the norms of effective application management. These sorts of things I don't think you can really get from books or documentation but from people that have had real life experiences with Cocoa Application Programming.
---------------------------------
Get amazing travel prices for air and hotel in one click on Yahoo! FareChase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden