🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #550

Re: Problems with Workspace's -getFileIconFor:TIFF:TIFFLength:ok:.

#550
From: Ali Ozer
Date: Mon, 06 Apr 1992 19:09
24 lines
1799 bytes
In article <SCOTT.92Apr3164821@nic.gac.edu> Scott Hess writes:
>Hmm.  Related bonus problem while I'm here.  Sometimes, when I get
>an icon from the Workspace and display it, it looks fuzzy, not
>really all that crisp.  I _think_ what's happening is that it's
>drawing the color version, for some obscure reason.  _But_, if I
>force it to redraw the image (by resizing the window or scrolling
>it), it changes back to monochrome (or at the least it gets crisp
>again).  Bug in NXImage?  Can I fix it easily?  The icon I've mainly
>noticed this with is Sam Streeper's BoinkOut, though I'm sure it
>happens with others (and I just haven't noticed it, because I've
>done my testing on /LocalApps, for the most part).

In ProcessMonitor you might also get the wrong representations for app icons;
the problem in that case is also fixed by redisplaying the window. Once you've
done that, the problem goes away. Your bug sounds like that problem, and if
they're the same, then, yes, it's a NXImage bug, and it's fixed in 3.0. 

I believe it happens if the NXImage (1) has multiple representations, (2) is
read from a stream, and (3) has setDataRetained:NO. Thus one workaround might
be to retain the data; another might be to somehow display the icon 
twice (or as many times as the NXImage has reps!) the first time. Instead 
of displaying you can also lock/unlockfocus on it that many times...

Ali, Ali_Ozer@NeXT.com
Technical Details
Message-ID: <3502@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!aozer
References: <SCOTT.92Apr3164821@nic.gac.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!aozer
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: Problems with Workspace's -getFileIconFor:TIFF:TIFFLength:ok:.
Message-ID: <3502@rosie.NeXT.COM>
Date: 6 Apr 92 19:09:32 GMT
References: <SCOTT.92Apr3164821@nic.gac.edu>
Sender: news@NeXT.COM
Organization: Next Computer, Inc.
Lines: 25