discuss-gnustep
[Top][All Lists]
Advanced

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

Re: How to Build a Tool that uses NSApplication...


From: Christopher Armstrong
Subject: Re: How to Build a Tool that uses NSApplication...
Date: Mon, 06 Nov 2006 22:10:47 +1100

Hi 

On Sun, 5 Nov 2006 21:47:29 -0800 (PST), "Matt Rice" <ratmice@yahoo.com>
said:
> > --- Christopher Armstrong
> > <carmstrong@fastmail.com.au>
> > wrote:
> > 
> > > > Basically I want to build a tool that does some
> > > processing of NSImages
> > > > (but never displays them).
> > > > 
> > > > Okay, but when I use the following make file:
> > 
> > <snip>
> > 
> > it might also worth noting that you may be required
> > to
> > run [NSApplication sharedApplication];
> > 
> > even though you never use NSApp.
> > 
> 
> ok i didn't really explain this very well
> 
> if you can avoid running -sharedApplication, you'll
> want to as it will stop your tool from running when
> its unable to make a connection to an x server (under
> x11 based backends).  but sometimes its unavoidable.
> 

Yeah I forgot to mention this. I believe that gnustep-gui needs to be
initialised somehow, and this basically involves calling a method
against NSApplication. Whether or not this means booting up the
application stuff in gnustep, I don't know. Hopefully it can be done
without it.

Cheers
Chris
 
-- 
  Christopher Armstrong
  carmstrong@fastmail.com.au





reply via email to

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