Hi,
This thread uses the protocol implementation performed by NSViewController, which was the previous situation I posted (already resolved). Now the implementation of the protocol is done in a class, as described below.
This is just a study to understand how to pass an instantiated object of a class between two NSViewControllers.
Here is the Protocol.
Here is the definition of the class that implements the protocol.
Here is the definition of the first NSViewController .
Here is the definition of the second NSViewController.
In the first viewcontroller, on line 22, the class object is declared and instantiated, with default parameters.
In the button's code on line 71, the object is instantiated with the values to be passed to the second viewcontroller, called on line 85, with the object's delegate.
However, the values that arrive at the second viewcontroller are those declared on line 22.
Thanks.