Re: Why I have to load nib file?
Re: Why I have to load nib file?
- Subject: Re: Why I have to load nib file?
- From: Roland King <email@hidden>
- Date: Wed, 26 Aug 2009 12:51:40 +0800
Do you ever try reading any documentation before you post your random
questions to the list?
go read this
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIApplicationMain
and that
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationEnvironment/ApplicationEnvironment.html#//apple_ref/doc/uid/TP40007072-CH7
Agha Khan wrote:
HI:
Reading iPhone Developer's Cookbook I realized we do not need a nib file.
The author was developing all applications without nib files.
It worked fine with OS 2.2.
Toady I complied his first program and got this error message.
2009-08-25 21:32:56.428 HelloWorld[2770:20b] Failed to load
NSMainNibFile //MainWindow.
But why? We shouldn't get this message. How can we get rid of this
message.
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"SomeAppDelegate");
[pool release];
return retVal;
}
Best regards
Agha
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden