• MorphOS Developer
    jacadcaps
    Posts: 2968 from 2003/3/5
    From: Canada
    Sorry about the include path, it should have been:

    Code:
    -I/SDK/Frameworks/include


    A minimal template would look like:

    Code:

    #import <ob/OBFramework.h>
    int main(void)
    {
    OBApplication *app = [OBApplication new];
    [app run];
    [app release];
    }


    but that's obviously only for an app with no UI. See the CustomClass.m in SDK:Frameworks/Examples - the main difference when using MUIFramework is that you implement muiMain instead of main. That takes care of some additional init steps and makes sure things are disposed of in order.
  • »06.05.18 - 13:30
    Profile Visit Website