Hi, I have written a code to load a nib file which consists of a view and a tableview. Everything works fine as expected but when i run the program, sometimes the views gets loaded, sometimes it doesnot. I mean, when i run my application say for the first time, it will open a proper GUI window with all the views in place. when i re-open the second time, it will not load the view. then if i close the application and open again, it will again open properly. This happens inconsistently and i am not able to figure out where the problem might be. One thing i figured out is that my "initWithFrame" function is being called twice.I'm not sure why this is happening.