I’ve been trying to create multiple custom views generating xibs and connecting controllers to them.
i have tried things like
[window AddSubView:view0]
and
[window setContentView:view0]
but i still don't get the new view displayed.
i think I'm doing it wrong since creating the xib file.
what is the right way from creating the xib files and the controllers to displaying custom views?
Thanks for your help.
We’ll after some… hard researching i got things working the way i want
here’s my code
what i was doing wrong was creating a class as NSView instead of NSViewController
and trying to load the view just like that but you need to create a NSViewController and set this as the File’s Owner class of the custom view XIB and then set the outlet VIEW to point at your custom view.
Thanks ya’ll 4 your help.