Solved

Connections Panel not showing Outlets

Posted on 2011-02-22
3
554 Views
Last Modified: 2012-08-13
Hello, I'm brand new to iOS development - literally. I'm following a how-to from the book "iPhone Programming The big nerd ranch guide."

I have created the project called Quiz.

Under classes QuizAppDelegate.h I have:

@interface QuizAppDelegate : NSObject <UIApplicationDelegate> {

int currentQuestionIndex;

//Model Objects
NSMutableArray *questions;
NSMutableArray *answers;

//view objects
IBOutlet UILabel *questionField;
IBOutlet UILabel *answerField;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

- (IBAction)showQuestion:(id)sender;
- (IBOutlet)showAnswer:(id)sender;

@end


--------------------


In the User interface window I have added 2 fields and 2 buttons. When I Control-Click on anything, the Connections Panel opens, but nothing shows up in it.

I have saved, closed and reopened. Checked the syntax, and did Clean all targets.

I'm brand new to this and it's probably simple. Can anyone help?



 
0
Comment
Question by:whosbetterthanme
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Expert Comment

by:nish_tr
ID: 34959306
Use

@property(nonatomic, retain) for

IBOutlet UILabel *questionField;
IBOutlet UILabel *answerField;


in your ".h" file
and also use

@synthesize questionField;
@synthesize answerField;

Thanks

in your ".m" file
0
 
LVL 7

Accepted Solution

by:
whosbetterthanme earned 0 total points
ID: 34960349
I figured it out. In the Doc window I double clicked the App Delegate icon and it opened the connections window, and it was only there that I could see the outlets. Then I was able to drag them onto the interface and see them.

I'm still not sure why it wouldn't show them when I Control/Clicked on the interface.

Anyway thank for the response.
0
 
LVL 7

Author Closing Comment

by:whosbetterthanme
ID: 34995321
I was able to figure out a solution
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wanted to watch videos in your computer from the bed without the need of standing up and shutting down the computer?  Is your computers operating system Windows XP, Windows Vista or Windows 7?  Do you own a iOS device? If all the answers were y…
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question