[Openmcl-devel] Application bundles and the interface database

Tord Kallqvist Romstad romstad at math.uio.no
Fri Oct 28 05:14:15 PDT 2005


Tord Kallqvist Romstad <romstad at math.uio.no> writes:

> Gary Byers <gb at clozure.com> writes:
> 
> > On Thu, 27 Oct 2005, Tord Kallqvist Romstad wrote:
> > 
> > > (defclass application-controller (ns:ns-object)
> > >  ()
> > >  (:metaclass ns:+ns-object))
> > >
> > > While trying to load this top-level form, I get:
> > >
> > >> Error: Class #<A Mac Pointer #xA28816FC> isn't recognized.
> > >> While executing: CANONICALIZE-REGISTERED-METACLASS
> > 
> > Can you print the value of (FIND-CLASS 'NS:+NS-OBJECT) earlier in
> > the .dfsl file (before the class definition ?)
> 
> #<OBJC:OBJC-METACLASS NS:+NS-OBJECT (#xA28876FC)>
> 
> Looks correct, doesn't it?
> 
> I don't know whether it has any significance, but I observe that the
> hexadecimal number #xA28876FC, which appear when evaluating (FIND-CLASS
> 'NS:+NS-OBJECT), is not equal to the number #xA28816FC, which appear
> in the error message.

After some further experiments, I think this *is* significant.  I
tried compiling my application bundle on two Macs (an iMac G5 1.8 GHz
and a G4 Cube 450 MHz, both running OS X 10.4.2).  It turns out that
the bundle built on the iMac does not work on the Cube, and vice
versa.  

When running the iMac-compiled bundle on the Cube, (FIND-CLASS
'NS:+NS-OBJECT+) evaluates to:

#<OBJC:OBJC-METACLASS NS:+NS-OBJECT (#xA28876FC)>

while the error message reads:

> Error: Class #<A Mac Pointer #xA28816FC> isn't recognized.
> While executing: CANONICALIZE-REGISTERED-METACLASS

When trying to run the Cube-compiled bundle on the iMac, I get exactly
the opposite:

#<OBJC:OBJC-METACLASS NS:+NS-OBJECT (#xA28816FC)>

> Error: Class #<A Mac Pointer #xA28876FC> isn't recognized.
> While executing: CANONICALIZE-REGISTERED-METACLASS

-- 
Tord Romstad



More information about the Openmcl-devel mailing list