Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Change NSView of window programatically

Hi,


I have a toolbar with some buttons. The toolbar is placed in a window with a view controller.

User uploaded file

I want to be able to switch from view if I push a button in the toolbar.

User uploaded file

This is my code (with everything properly connected)



- (IBAction)Featured:(id)sender {

[self.MainWindow.contentViewaddSubview:FeaturedView];

}


The FeaturedView is connected to the right view controller, and MainWindow is connected to the uppperleft window.

This code doesn't work, can anybody help me please?


Xcode 6 (Newest version), mac os x

iMac, OS X Yosemite (10.10)

Posted on Jun 2, 2015 1:23 PM

Reply

There are no replies.

Change NSView of window programatically

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.