22 Jan 2011, 14:36
Generic-user-small

Peter Morris (1 post)

I’m trying to follow this video but when I put a breakline on the code to call appDelegate.recipeClicked nothing happens. I have checked in the debugger and it would appear that appDelegate is nil.

// // RecipesViewController.h // Recipes // // Created by Peter Morris on 22/01/2011. // Copyright 2011 MyCompanyName. All rights reserved. //

import <UIKit/UIKit.h>

@class RecipesAppDelegate;

@interface RecipesViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> { IBOutlet RecipesAppDelegate *appDelegate; }

@end

In MainWindow within IB I have linked the RecipesView.appDelegate to FilesOwner (UIApplication) so it should be linked up and yet it isn’t. As far as I can see I followed the instructions correctly.

http://dl.dropbox.com/u/10266526/WritingIPhoneApp.zip

Any help appreciated, especially seeing as I only have weekends to work on stuff like this :-)

Thanks

  You must be logged in to comment