Hi, I have a P1 protocol, whose methods and properties are implemented by the C1 class. In NSViewController VC1, object OBJ1 of class C1 is instantiated. VC1 loads a new NSViewController VC2 through the segue, which needs access to the OBJ1 object. What is the best method to make VC2 see the object OBJ1, being able to modify it and return it to VC1? Thanks.
If it is not executed, that means that connection between code and IB is damaged or that the segue if fired in another way than through the performSegue in IBAction.
May be you have defined both an IBAction and a segue in IB from the button to its destination ? In such a case, the IBAction is not executed but the segue is fired.
If so,
- remove the segue in Interface Builder from Button to destination
- recreate the segue (same identifier) but form the VC to the desination (control drag from the left icon at top of VC in IB to the destination).
- select the type of segue you want (show for instance)
Otherwise, if that's not the case:
- Remove the connection (the black dot should disappear)
- Reconnect the button to its IBAction
- Do a Clean Build Folder
That should work now.