I have a project that is based on the Navigation Based Application template.
In the AppDelegate are the methods -applicationDidFinishLoading:
and -applicationWillTerminate:
. In those methods, I am loading and saving the application data, and storing it in an instance variable (it is actually an object-graph).
When the application loads, it loads MainWindow.xib, which has a NavigationConroller, which in turn has a RootViewController. The RootViewController nibName
property points to RootView (my actual controller class).
In my class, I wish to refer to the object that I created in the -applicationDidFinishLoading:
method, so that I can get a reference to it.
Can anyone tell me how to do that? I know how to reference between objects that I have created programmatically, but I can't seem to figure out to thread my way back, given that the middle step was done from within the NIB file.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…