[For the record, this is an iOS problem.]

On 24 Aug 2010, at 2:02 AM, Jennifer Usher wrote:

>       EasterCalcResultsView *easterCalcResultsView = 
>       [[EasterCalcResultsView alloc] initWithNibName:@"EasterCalcResultsView" 
> bundle:nil];
>       [self.navigationController pushViewController:easterCalcResultsView 
> animated:YES];
>       [easterCalcResultsView release];
> 
> It compiles fine, but when it reaches this code, nothing happens.  
> EasterCalcResultsView.xib is the nib file I am trying use for the new view.  
> 
> Obviously I am missing something here.  It might be as simple as that I 
> cannot create a new view in a view based application,  Or it might be that I 
> am doing it totally wrong.  So, I would appreciate any advice.

I think you may be close. See if self.navigationController is nil (po [self 
navigationController] in the gdb console window). I bet it is, and your 
MainWindow.xib does not have a UINavigationController in it.

Instantiate a throwaway navigation-based controller project and have a look at 
the MainWindow.xib file it generates. It should show you how to do what you 
want. Or, if your project isn't that big, you could use the navigation-based 
project and copy your existing code into it.

        — F

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to