Wrox Programmer Forums
|
BOOK: Beginning iPad Application Development
This is the forum to discuss the Wrox book Beginning iPad Application Development by Wei-Meng Lee; ISBN: 9780470641651
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iPad Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2010, 11:26 PM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Question about step 12 on page 94

When I attempt to carry out step 12 on page 94 I feel like when I right click and drag over that the Hello World View Controller and the Window base are not associating.

How do I know that they are associating correctly?

Also:

When I hit Command-R it succeeds BUT I just get a plain white screen and the debugger gives me 3 warnings that read

Under CompileXIB Classes/HelloWorldViewController.xib: (I get this warning)

The 'view' outlet of the 'File's Owner is connected to 'View' but 'view' is no linger defined on HelloWorldView Controller

Under the Compile windowbasedAppAppDelegate.m: (I get these 2 warnings)

1. Property 'viewController' requires method '-viewController' to be defined -use @synthesize, @dynamic or provide a method of implementation

2. Property 'viewController' requires the method 'setViewController:' to be defined - use @ synthesize, @ dynamic or provide a method of implementation

Can someone please give me some guidance so that I understand what I did wrong and what I need to do to correct this problem please.
 
Old October 13th, 2010, 01:30 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

First I would make sure on page 93 that you entered everything that is needed. There are no bold lines of code and the following should be bold and must be input into the project:
Code:
@class HelloWorldViewController;
HelloWorldViewController *viewController;
@property (nonatomic, retain) IBOutlet HelloWorldViewController *viewController
If this doesn't resolve your problem. I would suggest that you redo the project, in case you made some errors following the steps. If the redo works, try to locate the discrepancies between the 2 projects.
If that doesn't help you could send me your project files at
[email protected]
and I will diagnose it.
 
Old December 20th, 2010, 12:24 PM
Registered User
 
Join Date: Dec 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having the same problem

Hello

Page 94 step 12 isn't very clear. Don't see how to wire the delgate and view controler by dragging.

Thanks for any help

John
 
Old December 20th, 2010, 12:50 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

When you drag from the WindowBasedAppDelegate item to the HelloWorldView Controller a delegate outlet option should be available. Click on the word "delegate" in the drop-down menu that appears. Alternatively, you can right-click or control-click the WindowBasedAppDelegate item opening the Outlets/Actions info window and drag from the empty circle to the right of the delegate outlet option to the HelloWorldView Controller. You will know that the connection has been made because the name of the outlet will appear next to the word "delegate" in the WindowBasedAppDelegate item and the circle will now be filled with a dot.
If the delegate option is not appearing, refer to the previous bold code posting to ensure that you have entered all necessary code. Also, make sure you have saved your work in Xcode. Outlets typed in Xcode only appear in Interface Builder after they have been saved.
Let me know if this helps.
Bob
 
Old December 20th, 2010, 03:01 PM
Registered User
 
Join Date: Dec 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Now I understand

Some times even with years of programming experience, I can be a little slow. When they say control click they mean hold down the control key and then click. When I did this I was able to link the delegate and the view.

John





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 417 step 12 "Bound to:" field Dan Cern BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 August 24th, 2009 12:15 PM
chap3,page:94, connection probs sandeepgreaternoida BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 April 11th, 2009 06:34 PM
Chapter 12 - Page 406 - Step 9 - Not showing up this way? jn148 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 December 14th, 2008 12:58 PM
Question re Beginning XML book pages 94-95 stevie999 XSLT 5 February 10th, 2004 09:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.