rubymotion-community / ib

IB Outlets for rubymotion
MIT License
253 stars 33 forks source link

macOS 10.12 and 10.13 IB gem creates two windows on startup #93

Closed tsugua closed 6 years ago

tsugua commented 6 years ago

When loading the osx sample app from the IB gem there are two instances of the window created. One is properly linked with the NSWindowController and the other one is directly behind and is not linked to any NSWindowController.

https://www.dropbox.com/s/ynf9zfuqvkmi36j/2017-10-11_14-50-56.png?dl=0

tsugua commented 6 years ago

It looks like the 'visible at launch' box was checked in Interface Builder which was causing two windows to be created. I'm not sure why the second one was built but unchecking the 'visible at launch' box fixed the problem.