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: csanyipal
Subject: Re: NSInvalidArgumentException: NSBundle(class) does not recognize loadGSMarkupNamed:owner:
Date: Sat, 31 Jul 2010 21:31:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

German Arias <german@xelalug.org> writes:

> csanyipal@gmail.com escribió:
>> I have installed (with 'emerge renaissance' command)
>> gnustep-libs/renaissance version 0.9.0.
>>
>> I think I did not import Renaissance. How can I do that?
>>
>>   
> With
>
> #import <Renaissance/Renaissance.h>

> see the documentation:
>
> http://www.gnustep.it/Renaissance/Documentation.html

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);
}



-- 
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info




reply via email to

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