|
From: | Fred Kiefer |
Subject: | Re: AppKit Tool Problem |
Date: | Fri, 04 Jun 2004 00:19:22 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 |
Andreas Höschler wrote:
I very recently upgraded from gui 0.9.0 to the latest snapshot. Now one of my tools (web application) no longer works. I get the messageNAME:NSInternalInconsistencyException REASON:GSFontInfo.m:70 Assertion failed in GSFontEnumerator(class), method sharedEnumerator. Called with fontEnumeratorClass unset. The shared NSApplication instance must be created before methods that need the backend may be called.This tools needs access to a few AppKit classes. That's why I linked gui. I thought "Give him what he wants" and added[NSApplication sharedApplication]; // Important for GNUstep to set the fontEnumeratorClassto my code. Now I getEudoraWeb[10232] X DISPLAY environment variable not set, assuming local X server (DISPLAY=:0.0) .../EudoraWeb: Uncaught exception WindowServerCommunication, reason: Unable to connect to X Server `'Here I get lost. It is a Solaris 8 machine with no display card available. What can I do to fix this. Is anybody saware of any changes between gui 0.9.0 and now that might cause this "different" behaviour?
There have been quite a few changes since 0.9.0, so it is hard to tell, what is causing the difference for you. Which GUI classes are you actually using? In some cases it may be possible to work around the font allocation (which was causing your first problem), but if your are actually using GUI classes, they may have a reason to access a font. In that case you need to initialise the backend, which gets done in the [NSApplication sharedApplication] call. Here you could try to redirect the X output, by pointing DISPLAY to another machine.
Fred
[Prev in Thread] | Current Thread | [Next in Thread] |