• David Fuhrmann's avatar
    macosx: fix subtile bug in initialization of mainwindow · 0d847ccb
    David Fuhrmann authored
    Currently, two objects of the class VLCMainWindow are generated. The first is alloated
    from intf.m (triggered by the first log message that arrives) and is initialized by
    both init and initWithContentRect. The second object is created from inside the nib file,
    and is instantiated ONLY with initWithContentRect. Therefore, up to now _o_sharedInstance
    had the wrong object and all calls to sharedInstance would cause problems.
    But somehow, o_mainwindow in intf.m is updated to the correct second object, although it holds
    the first object at start.
    
    Furthermore, o_fspanel is also instantiated through the nib file.
    0d847ccb
MainWindow.m 101 KB