Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-10-2009, 05: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,358
Threads: 39,155
Posts: 171,643
Top Poster: smasher (2,577)
Welcome to our newest member, jeffry7robbins
Powered by vBadvanced CMPS v3.1.0

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