[Vm-dev] Re: [Pharo-project] Some steps towards headless on OS X
Esteban Lorenzano
estebanlm at gmail.com
Mon Jun 4 09:17:10 UTC 2012
no, I didn't forget about :)
just still not time to face it, sadly... but I will as soon as possible.
Esteban
On Mon, Jun 4, 2012 at 12:55 AM, Stefan Marr <smalltalk at stefan-marr.de>wrote:
>
> Guys, you are probably better off on the VM mailing list.
>
> And I am certainly also interested in a headless Cocoa VM. (Esteban
> already forgot about my nagging apparently :-P)
>
> FW:
>
> On 04 Jun 2012, at 00:02, Sean P. DeNigris wrote:
>
> >
> > Mark Smith wrote
> >>
> >> The obvious thing to try (which I tried ;) is to not create a window
> >>
> >
> > For giggles, I changed main() to:
> > ...
> > #import <sqSqueakOSXApplication.h>
> >
> > int main(int argc, char **argv, char **envp)
> > {
> > extern int argCnt;
> > extern char **argVec;
> > extern char **envVec;
> >
> > argCnt = argc;
> > argVec= argv;
> > envVec = envp;
> >
> > NSAutoreleasePool * pool = [NSAutoreleasePool new];
> >
> > NSRunLoop *runLoop = [NSRunLoop mainRunLoop];
> > sqSqueakOSXApplication* app = [sqSqueakOSXApplication new];
> > [app setupEventQueue];
> > [runLoop performSelector: @selector(runSqueak)
> > target: app
> > argument: nil
> > order: 1
> > modes: [NSArray arrayWithObject: NSDefaultRunLoopMode]];
> >
> > [runLoop run];
> >
> > [pool release];
> > return 0;
> > }
> >
> > This starts the interpret loop, but seems to get stuck in
> > primitiveFindHandlerContext(), which gets called from
> > initStackPagesAndInterpret()
> >
> > p.s. for testing, you can pass in the headless flag and image file via
> > Product->Edit Scheme->Arguments
> >
> > --
> > View this message in context:
> http://forum.world.st/Some-steps-towards-headless-on-OS-X-tp4633047p4633080.html
> > Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
> >
>
> --
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> http://soft.vub.ac.be/~smarr
> Phone: +32 2 629 2974
> Fax: +32 2 629 3525
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20120604/15fb9c2a/attachment-0001.htm
More information about the Vm-dev
mailing list