I am totally new to the Mac apps development. I am facing an issue since last two days but could not succeed. My problem is the same as question Swiching between 2 diferent NSViewControllers with data.
Could you please help me to understand the process and syntax of how to move from one NSViewController
to another.
I have a View controller for login where I have two fields i.e. UserId
and password
.
On the click of the login button a web API is called to authenticate the user and upon receiving "SUCCESS"
as the response, control should be transferred from LoginViewController
to ProfileViewController
.
I have tried to resole this issue as per the answer of the question (link given) but I am getting an error that. "fromviewcontroller.view.superview cannot be nil."