jeandrek / kea-browser

A lightweight WebKit-based browser.
http://jonathan50.github.io/kea-browser/
GNU General Public License v3.0
6 stars 2 forks source link

Windows (or .NET WinForms) and Cocoa support #1

Open jeandrek opened 8 years ago

towerofnix commented 8 years ago

cocoaaaaa

jeandrek commented 8 years ago

oh yeaah I learned Objective-C yesterday basically

int
main (int argc, char **argv)
{
    [NSApplication sharedApplication];
    [NSBundle loadNibNamed: @"myNib" owner:NSApp];
    [NSApp run];

    return 0;
}

for a basic Cocoa GUI the classes are pretty cool

jeandrek commented 8 years ago

^ if you aren't using Storyboards

jeandrek commented 8 years ago

what - (NSBundle)loadNibNamed:owner: is deprecated what

ok I got it

int
main (int argc, char **argv)
{
    NSArray * topLevelObjects;
    [NSApplication sharedApplication];
    [[NSBundle mainBundle] loadNibNamed: @"myNib" owner:NSApp topLevelObjects:&topLevelObjects];
    [NSApp run];

    return 0;
}