p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning iOS 4 Application Development (http://p2p.wrox.com/forumdisplay.php?f=599)
-   -   Chapter 3. step 5 (http://p2p.wrox.com/showthread.php?t=81511)

rodriguezs08 November 7th, 2010 02:31 PM

Chapter 3. step 5
 
When control-clicking and dragging the File's Owner item to the Text Field view I do not receive a popup with the outlet named txtName. I do admit I personally typed the code but I also double and triple checked my code. It is exactly as the book instructs...Any suggestions as to what I may have done wrong? I am currently retyping the code now. Please any advice would be much appreciated.

rcutshaw November 7th, 2010 10:29 PM

If you've declared the txtName in the OutletsAndActionsViewController interface like so:

IBOutlet UITextField *txtName;

and exposed as a property (outside the interface declaration) like so:

@property (nonatomic, retain) UITextField *txtName;

and synthesized txtName like so:

@synthesize txtName; (make sure you save your changes in the files)

and Option-clicked the Files Owner and dragged over the Text Field view, then the txtName should appear to select (make sure you hold down the Option key when you click and drag)

I know this is what you said you did, but sometimes we overlook something small like saving the files or using the Option key. Anyway, hope this helps.


All times are GMT -4. The time now is 10:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.