discuss-gnustep
[Top][All Lists]
Advanced

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

Re: loading libs into greg


From: Nicola Pero
Subject: Re: loading libs into greg
Date: Sat, 29 Jun 2002 11:32:03 +0100 (BST)

> thanks, though it does not quite work yet
> 
> this is my test.scm:
> (use-modules (languages gstep-guile))
> ([] "NSBundle" bundleWithPath: ($$            
> "/home/bgohla/Source/rhapsody/Rhapsody/RCompBun/RCompBun.bundle"))
> (greg-expect-pass "instantiate bundled class"
>                 (begin
>                   (define obj1 ([] "StackModel" new))
>                   (gstep-bool ([] obj1 isKindOfClass: ([] "StackModel" 
> class)))
>                   )
> )


You need to load the bundle!  Just creating the NSBundle object is not
enough if you don't load it!

([] ([] "NSBundle" bundleWithPath: xxx) load)


[If you're stuck, another thing you can always do is look at the
gnustep-base tests (which are quite extensive).  It's on 'tests' on CVS.  
I think there is a test loading a bundle there.]




reply via email to

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