objective c - My NSViewController doesn't respect view order (OS X) -


i'm working on mac os x app.

i have mainviewcontroller xib subviews , class mainviewcontroller (a nsviewcontroller).

i add in there empty nsviewcontroller above other views. set background color in layer. but, views created in xib stay above second view controller. views added programmatically in mainviewcontroller seem work expected.

any idea ?

edit : in fact, problem seems come second view controller, not xib.

edit 2 : found 1 part of problem. second view controller load same xib mainviewcontroller shouldn't. initialize without xib : [[secondviewcontroller alloc] init]

edit 3 : removed xib file , created new 1 debugging. second view controller still load xib. if remove class file's owner, still tries load it, writes error console :

[nsviewcontroller loadview] loaded "(null)" nib no view set. 

you notice doesn't know xib's name. pretty weird.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -