bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with file owner on Renaissance files


From: Pete French
Subject: Problem with file owner on Renaissance files
Date: Tue, 15 Jul 2003 21:49:17 +0100

Am trying to load a main menu file thus:

int main(int argc, const char *argv[])
{
        NSAutoreleasePool *pool = [NSAutoreleasePool new];

        [NSApplication sharedApplication];
        [NSBundle loadGSMarkupNamed:@"MainMenu" owner:NSApp];

        return NSApplicationMain(argc, argv);
}

But I get an app with a blank menu. If I create a dummy object to
act as the delegate and pass an instance of that in as the owner
then it works. Passing in nil or NSApp doesnt.

How do I simply load up a main menu nib file without having to
create a dummy deletage for it ? Theer are no references to the files
owner in the actual markup file. I am quite puzzled by this.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]