🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Workspace icon animation

#1755
From: Ali Ozer
Date: Tue, 06 Oct 1992 13:47
18 lines
1317 bytes
In article <1992Oct3.073431.23948@muddcs.claremont.edu> wprice@pomona.claremont.edu writes:
>I've been trying to find information on how to make my program's icon in the  
>dock change images while it is running.   ...  I browsed the new  
>Workspace protocol for 3.0, is there a new special way to do this, or what is
>the old way?

Get a hold of the Window object for the application tile (via [NXApp
appIcon]) and draw in its content view.  Under 3.0 use the NXAppTile
image to assure that the standard look of the tile isn't destroyed.
Even if you are writing a 2.0 app, you should still do a findImageNamed:
on NXAppTile and use it if you find it; this assures that your app will
do the right thing under 3.0. If you don't find the image, then you can
just try to recreate the 2.0 look yourself (under 2.0 it was a much
simpler image).

The 3.0 AppKit release notes have more info about using NXAppTile.

Ali, Ali_Ozer@NeXT.com
Technical Details
Message-ID: <5312@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sun-barr!decwrl!rosie!aozer
References: <1992Oct3.073431.23948@muddcs.claremont.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sun-barr!decwrl!rosie!aozer
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: Workspace icon animation
Message-ID: <5312@rosie.NeXT.COM>
Date: 6 Oct 92 13:47:52 GMT
References: <1992Oct3.073431.23948@muddcs.claremont.edu>
Sender: news@NeXT.COM
Organization: Next Computer, Inc.
Lines: 18