Your code probably doesn't work because you are initializing a second AppController.
You need a reference to your original AppController in AppDelegate. This can be achieved by using cocoa bindings. In your .XIB file, drag a new blue Object from your Object Library, set it to be a AppController class using the inspector, then control-drag into your AppDelegate header to create a binding. Use that reference and remove the AppController *x = [[AppController alloc] init];
.