Hello all,
I am sure this it is a simple case, but still I got a serious problem with that.
I intend to use the buttons of a toolbar for navigating within my App. Every screen has different toolbar-buttons (representing different navigation-targets), therefore I created a "Window-Based Application" with several NIB's. Each of them containing its own toolbar and toolbar-buttons.
The problem is: I cannot connect the selector of the toolbar-button with the IBAction-method of my controller (which is the File's Owner). Interface Builder simply doesnt accept dragging from the toolbar-button to the File's Owner.
The funny thing about it:
- I could drag from the toolbar-button to the First Responder, and connect the selector of the toolbar-button to the defined IBAction-method. But the method will not be executed withing the controller-class.
- I am sure it should works, since I have another sample-application (called QuartzFun), in which I can drag from toolbar-buttons to the IBAction-methods within the File's Owner controller-class. This project was created from a "View-Based Application", having another controller in the MainWindow.xib (but I dont know why
).
Therefore I am pretty sure, it is something about the "First Responder"-concept, I havent fully understood.
Any help, will be much appreciated.
Thanks,
Paul