• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing apps without IB...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Writing apps without IB...
      • From: tibbetts <email@hidden>
    • Re: Writing apps without IB...
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: 5-channel CMYKA image fails to give TIFFRepresentation
  • Next by Date: Re: Writing apps without IB...
  • Previous by thread: Re: Writing apps without IB...
  • Next by thread: Re: Writing apps without IB...
  • Index(es):
    • Date
    • Thread