discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSImage in a tool


From: Chris B. Vetter
Subject: Re: Creating NSImage in a tool
Date: Mon, 13 Feb 2006 16:47:17 +0100

On 2/13/06, Stefan Urbanek <stefan@agentfarms.net> wrote:
> Hi,
> I need a tool that will take some inputs and will generate one or more TIFFS. 
> I
> am trying to create an image in a tool under MS Windows like this:
[...]
> c:\Documents and Settings\b_urbanek\Desktop\gstest\shared_obj\test.exe: 
> Uncaught
> exception WindowServerCommunication, reason: Unable to retrieve list of 
> screens
> from window server.

Changing it to

       NSAutoreleasePool *pool = [NSAutoreleasePool new];
       [NSApplication sharedApplication];
       create_image();

should do the trick. This will open a connection to the window server
but not enter the application run loop.

--
Chris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]