Open jeandrek opened 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
^ if you aren't using Storyboards
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;
}
cocoaaaaa