[comp.sys.next] Stealth Application Icon

lane@sumex-aim.stanford.edu (Christopher Lane) (07/22/89)

A trivial technical tidbit:  If you're like me (heaven forfend) and are
annoyed that although the 'Stealth' demonstration program has an application
icon it doesn't show up in the Workspace browser (the generic executable
application is shown instead) then below is a solution.

Assuming you've downloaded the 'fsectbyname' utility I posted earlier to the
cs.orst.edu public NeXT archive, then as 'root' do:

# cd /NextDeveloper/Demos/Steath.app
# fsectbyname r Stealth __ICON __header | tr ' ' '\011' >Stealth.iconheader
# fsectbyname w Stealth __ICON __header <Stealth.iconheader
# rm Stealth.iconheader

The character in '\011' is zero, not 'oh'.  Also, this cannot be done as a
single pipe as 'fsectbyname' has to have a real file in order to measure its
size to make sure it will fit (perhaps this is something I should change).
Of course, you might want to make a copy of Stealth before trying this.

Once you've done the above, then do 'Utilities>Find Tools' from the Workspace
menu and the Stealth icon should now show up.  This fix replaces an erroneous
space character with a tab in the icon header file in the Stealth binary.

Just another example of better living through Mach-0 binary dissection.

- Christopher