Re: Writing apps without IB...
Re: Writing apps without IB...
- Subject: Re: Writing apps without IB...
- From: Matthew Smith <email@hidden>
- Date: Thu, 28 Nov 2002 15:10:18 +1100
>
Hi.. I was wondering if someone could point me in the right direction for
>
writing a sample cocoa program that has a minimal UI but isn't built using IB
>
at all -- all UI setup is done via code and not resource files. I haven't
>
found much info on this and something minimal would get me going.
One way to do this is to create a subslassed NSApp (mine's called
AppController) then have this code in your main.m
#import "AppController.h"
int main(int argc, const char *argv[])
{
NSApp = [AppController sharedApplication];
[NSApp run];
return 0;
}
In AppController.m, have a function called: -(void)finishLaunching
In which you can start the ball rolling (creating windows and what-not)
Hope it helps
Matt Smith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.