Got it.
No error in the code.
Just add one more line of code
self.view = viewController.view;

Thank everyone.

Best regards
Agha

On Jul 14, 2009, at 7:23 PM, Agha Khan wrote:

Hi:
you may download DigiClock http://appsamuck.com/day28.html

I just wanted to remove MainWindow.xib from the project.

so go to the info.plist and remove MainWindow.xib
go to the main.m and replace this line
int retVal = UIApplicationMain(argc, argv, nil, @"DigiClockAppDelegate");

go to DigiClockAppDelegate.m and add
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
rootViewController = [[RootViewController alloc] init];

last goto RootViewController.m and remove - (void)viewDidLoad we are not using NIB file
Add this line
- (void)loadView
{
        
MainViewController *viewController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
        self.mainViewController = viewController;
        [viewController release];
// we did not add infoButton
}
Run it The window will never show, but why? :-)
I have not remove any other Nib file.
Technically it should work.
What I am doing wrong?

Any help will be very much appreciated.


_______________________________________________

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/agha.khan%40me.com

This email sent to agha.k...@me.com

_______________________________________________

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