Solved

Connections Panel not showing Outlets

Posted on 2011-02-22
3
549 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
  • 2
3 Comments
 
LVL 2

Expert Comment

by:nish_tr
Comment Utility
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
Comment Utility
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
Comment Utility
I was able to figure out a solution
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this article I'm going to cover the basics and usages of NSInvocation. What is NSInvocation? Apple Developer Reference describes NSInvocation this way: An NSInvocation is an Objective-C message rendered static, that is, it is an action tur…
The release of the iPhone 6 and the iPhone 6 Plus was extremely successful for Apple. However when iOS 8.1 was introduced, many iPhone users complained of quick battery drainage. Without even knowing, you may be unnecessarily using up your battery p…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now