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.