[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a window for a tool
From: |
Chris B . Vetter |
Subject: |
Re: a window for a tool |
Date: |
Tue, 21 May 2002 12:50:25 -0700 |
On Tue, 21 May 2002 13:34:04 -0600
Adam Fedor <fedor@doc.com> wrote:
> Well you ought to be able to just get the sharedApplication object
> (which makes the 'connection' to the window server), then start up your
> own runloop which will receive and process events (see NSApplication for
> examples). This should not start up anything else unless it's absolutely
> needed - although I woundn't expect to be able to do any more than throw
> up an alert panel or something similer.
> I haven't actually tried this, but if it doesn't work that way, one
> could reasonably consider it a bug (patches *happily* accepted).
I added -lgnustep-gui in GNUmakefile.preamble and made a call ala
int main(int argc, STR *argv, STR *envp)
{
// var declarations
[NSApplication sharedApplication];
// my stuff
return EXIT_SUCCESS;
}
And bingo! It works.
However, I *know* I tried that before, and it didn't work then.
--
Chris
- a window for a tool, Enrico Sersale, 2002/05/21
- Re: a window for a tool, Pascal Bourguignon, 2002/05/21
- Re: a window for a tool, Chris B . Vetter, 2002/05/21
- Re: a window for a tool, Pascal Bourguignon, 2002/05/21
- Re: a window for a tool, Chris B . Vetter, 2002/05/21
- Re: a window for a tool, Adam Fedor, 2002/05/21
- Re: a window for a tool,
Chris B . Vetter <=
- Re: a window for a tool, Stefan Urbanek, 2002/05/21
- Re: a window for a tool, Chris B . Vetter, 2002/05/21
- Re: a window for a tool, Pete French, 2002/05/21