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.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
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@stefan-marr.dewrote:
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....
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
vm-dev@lists.squeakfoundation.org