Hi,
I want to build an exe for Mac that has a few dialogs. I do not want to create an application as it creates menubar, and application structure. The exe will eventually get integrated into other products.
I tried following code in a FoundationTool project -
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
NSApplication *app = [NSApplication sharedApplication];
if ([NSBundle loadNibNamed
"SendDmp.xib" owner:app])
{
NSLog(@"Nib loaded");
[app finishLaunching];
} else {
NSLog(@"Nib Load failed -- ");
}
[app run];
[pool drain];
return 0;
}
The xib file is included in the project, but it is failing to load the file. I tried copying the xib file to the debug folder thinking its not finding the file, but nothing changed. The application runs but I don't see the form.
Please help.
Thanks
I want to build an exe for Mac that has a few dialogs. I do not want to create an application as it creates menubar, and application structure. The exe will eventually get integrated into other products.
I tried following code in a FoundationTool project -
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
NSApplication *app = [NSApplication sharedApplication];
if ([NSBundle loadNibNamed
{
NSLog(@"Nib loaded");
[app finishLaunching];
} else {
NSLog(@"Nib Load failed -- ");
}
[app run];
[pool drain];
return 0;
}
The xib file is included in the project, but it is failing to load the file. I tried copying the xib file to the debug folder thinking its not finding the file, but nothing changed. The application runs but I don't see the form.
Please help.
Thanks