discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSInvalidArgumentException: NSBundle(class) does not recognize loadG


From: German Arias
Subject: Re: NSInvalidArgumentException: NSBundle(class) does not recognize loadGSMarkupNamed:owner:
Date: Sat, 31 Jul 2010 14:05:11 -0600
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

csanyipal@gmail.com escribió:
The main.m file follows:

#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <Renaissance/Renaissance.h>

@interface MyDelegate : NSObject
{}
- (void) applicationDidFinishLaunching: (NSNotification *)not;
@end

@implementation MyDelegate : NSObject

- (void) applicationDidFinishLaunching: (NSNotification *)not;
{
  [NSBundle loadGSMarkupNamed: @"LPT_Interface"  owner: self];
}
@end

int main (int argc, const char **argv)
{ CREATE_AUTORELEASE_POOL (pool);
  MyDelegate *delegate;
  [NSApplication sharedApplication];

  delegate = [MyDelegate new];
  [NSApp setDelegate: delegate];

#ifdef GNUSTEP
  [NSBundle loadGSMarkupNamed: @"Menu-GNUstep"  owner: delegate];
#else
  [NSBundle loadGSMarkupNamed: @"Menu-OSX"  owner: delegate];
#endif

  RELEASE (pool);
  return NSApplicationMain (argc, argv);
}

Well, to my this code compile and run without problem. Are you sure that when you compile the Renaissance/Renaissance.h is found? (I have "Renaissance" from SVN. But I think this isn't a problem.)




reply via email to

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