Quote:
Originally Posted by RockStrongo
Hey Dev...ok, so what did you mean by saying the interface file thinks its in the MainWindow.xib?
When I remove the IBOutlet's, it still performs the same.
How is MainView.xib associated with the app delegate? If I understand that, it might help out.
|
MainWindow.xib is tied at the base level with your app delegate through the info.plist file.
When you call IBOutlet in any interface file, you are saying: When my app launches, this section is shown in the IB file it launched with. In this case, MainWindow.xib.
What you need to do: call it as a property, that is, take out the IBOutlet bit, and also add in the @property bit.
Then Synthesize it into your app in the implementation file.
Then say
whateverItIs = [[WhateverItIs alloc] initWithNibFile:whateverItIs bundle:nil]; in the appDidFinishLaunching bit.
that creates a property that holds through the entire app. That property you have said, is a class of WhateverItIs, and you are telling the compiler to initiate it by activating the XIB file in no bundle.
Make sure you release this property at dealloc.