osx - How do I create an instance of a designed object in Objective-C? -
i'm writing application require multiple windows. i've designed how want window in interface builder , when start application looks should. i've got large library of c++ code i've been making use of , i've managed integrate nicely. however, have functions use (in cross-platform system) create windows - how create new/second instance of window designed in interface builder?
for example, have nswindow, contains nsview, contains opengl view. @ launch, window (and it's contents) created , shown wonderfully.
at point when window running want respond user input , display second window nsview , opengl view (exactly designed in ib). how create second instance?
i new mac programming , appreciate may have misunderstood concepts of how works - corrections welcome!
your have reload nib containing window. easiest way this, instantiate window controller nib.
Comments
Post a Comment