Hello!
I want to use the native UI of iOS for my apps(*) and came across Alien and
FFI. I did a ConfigurationOfAlien loadMacOSX to see the samples and each of
this samples reveals a MessageNotUnderstood exception for Alien>>lookup if they
are called. No errors on loading the packages into the image.
ObjCRuntimeRef>alienMethodNamed: is calling Alien>>lookup: This method was
moved from Alien to AlienLibrary with Alien-Core-sd.17. A closer look into the
source (in Alien or AlienLibrary) shows that the given libraryname is completly
ignored and only IAB32 is used. The first use of Alien>>lookup is found in
ObjCRuntimeRef>initialize.
Completely lost at the moment, because I'm sure the samples have worked
(someday), but the changes in Alien (moved lookup and so on) are from 2009. Can
you give me some hints what I did wrong, or what I should do to give better
information to you? Is Alien/FFI the right path or should I use an other
package (which one)?
What I did:
OS X 10.8.2 with the CogVM app for Pharo 1.4 and the summer from the
pharo-project site.
Gofer it
squeaksource: 'MetacelloRepository' ;
package: 'ConfigurationOfFFI' ;
load.
(ConfigurationOfFFI project version: '1.5') load.
Gofer it
squeaksource: 'MetacelloRepository' ;
package: 'ConfigurationOfAlien' ;
load.
ConfigurationOfAlien loadMacOSX.
I tried also 'ConfigurationOfOldAlien' because this version has the
Alien>>lookup, but then I have no ObjCRuntimeRef/Samples.
Many thanks in advance!
Gerold
(*) I have managed to compile an iOS VM under OS X 10.8.2 with XCode 4.5.1
with iOS SDK 6.0. Pharo 1.4 StackVM is running with the cleanForProduction
Summer image on iPhone 4s and iPad2. Many thanks to Esteban Lorenzano (and all
the others!) for his https://gitorious.org/cogvm/blessed
--
Gerold Pummer
Salzburg, Austria