discuss-gnustep
[Top][All Lists]
Advanced

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

Re: loading libs and bundles into greg


From: Björn Gohla
Subject: Re: loading libs and bundles into greg
Date: Mon, 1 Jul 2002 22:39:27 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 29 June 2002 12:32, Nicola Pero wrote:
> > 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)
stupid me.

> [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.]
i had been looking at this, but only discovered the bundle loading example 
after i succeeded loading a bundle.

what i had been searching for originally was a library loading example which 
i did not find in the tests suite. dynamic-linking libraries that i compiled 
myself gives me this error message:
tests - test.scm - Exception: (misc-error dynamic-link file not found () #f)

while loading stuff from /usr/lib does not, although that does not 
necessarily mean it was successful. will have to look into this further.

anyway, being able to regression test components as i write them is quite 
exciting and a great help, thanks for providing greg.
- -- 
Article 14 from the Universal Declaration of Human Rights
    1. Everyone has the right to seek and to enjoy in other countries
       asylum from persecution.
       [...]
pub  1024D/834F4976 2001-01-07 Björn Gohla (Wissenschaftler, Weltbürger) 
<b.gohla@gmx.de>
     Key fingerprint = 9FF4 FEDA CCDF DA0E 14D5  8129 6C14 3C39 834F 4976
sub  1024g/29571FE2 2001-01-07
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9IL4DbBQ8OYNPSXYRAiAsAKCrX1coRW1HRyhTDY/+cBOw/DhUlwCfbOrg
LVeOlaQqadGSZt5LebR0CpI=
=8zst
-----END PGP SIGNATURE-----



reply via email to

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