Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-10-2009, 06:41 PM   #1 (permalink)
paul84
New Member
 
Join Date: May 2009
Posts: 6
Default Toolbar-Button / cannot connect to IBAction-method in controller

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:
  1. 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.
  2. 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
paul84 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,720
Threads: 89,177
Posts: 380,485
Top Poster: BrianSlick (7,120)
Welcome to our newest member, MINCHEW
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.