I have an AppController object that contains an instance variable int adventures
.
This is bound to a label through Interface Builder.
I also have a subclass of NSWindowController called PopUpWindow. When the enter button is clicked the value in the text field on the pop up window should change the variable adventures
in the AppController object.
Even after using @public
and @package
for adventures
it doesn't change. I'm also trying to use
[self willChangeValueForKey:@"adventures"];
from the PopUpWindow class. Will that work across classes? How can I do this?