[comp.sys.next] The World Icon

beck@VAX309.NOSC.MIL (06/04/91)

Hello!
I would like to "find" the World Icon that automatically comes up
to represent the directory /Net and use it for my directories
that are actually NFS clients. More generally, how does one "attach"
an icon to a directory? If you look in /Net, there's nothing there.

Thanks in Advance!

Reply to: beck@cpl.nosc.mil
          Naval Health Research Center, San Diego, CA

tdawson@weeg.uiowa.edu (Tim Dawson) (06/04/91)

In article <4048@nosc.NOSC.MIL> beck@VAX309.NOSC.MIL writes:
> Hello!
> I would like to "find" the World Icon that automatically comes up
> to represent the directory /Net and use it for my directories
> that are actually NFS clients. More generally, how does one "attach"
> an icon to a directory? If you look in /Net, there's nothing there.
> 
> Thanks in Advance!
> 
> Reply to: beck@cpl.nosc.mil
>           Naval Health Research Center, San Diego, CA

In my experience, the easiest way to "find" an icon is to rip it off
using Icon's "grab" feature (I know Icon is buggy, just be careful).
Then set the image size to 48 x 48 and save the file as "world.tiff" or
something.  As far as "attaching" the icon, simply move the file to 
the folder you want to iconize and rename the file to ".dir.tiff"
(excluding the quotes, of course).  It's that easy.

Hope this helps.

Tim Dawson
University of Iowa, Iowa City, IA

louie@sayshell.umd.edu (Louis A. Mamakos) (06/05/91)

You should be able to extract it [the "world" icon] from the file

	/usr/lib/NextStep/Workspace.app/Workspace

using the 'nibedit' tools, extract/combine perl scripts that I posted a
few months back, or by just using segedit manually to extract it.

louie

swede (Jim Mynatt) (06/05/91)

In article <6327@ns-mx.uiowa.edu> tdawson@weeg.uiowa.edu (Tim Dawson) writes:
  > In article <4048@nosc.NOSC.MIL> beck@VAX309.NOSC.MIL writes:
  > > Hello!
  > > I would like to "find" the World Icon that automatically comes up
  > > to represent the directory /Net and use it for my directories
  > > that are actually NFS clients. More generally, how does one "attach"
  > > an icon to a directory? If you look in /Net, there's nothing there.
  > > 
  > > Thanks in Advance!
  > > 
  > > Reply to: beck@cpl.nosc.mil
  > >           Naval Health Research Center, San Diego, CA
  > 
  > In my experience, the easiest way to "find" an icon is to rip it off
  > using Icon's "grab" feature (I know Icon is buggy, just be careful).
  > Then set the image size to 48 x 48 and save the file as "world.tiff" or
  > something.  As far as "attaching" the icon, simply move the file to 
  > the folder you want to iconize and rename the file to ".dir.tiff"
  > (excluding the quotes, of course).  It's that easy.
  > 
  > Hope this helps.
  > 
  > Tim Dawson
  > University of Iowa, Iowa City, IA

--
You might try "Grab" in /NextDevelper/Demos.
 Also if you want a different icon to indicate it is receiving something (like  
when you drag something into folder - it opens) just place another appropriate  
icon (world split open maybe) and name it .opendir.tiff

	jim
-------------------------------------------------------
James L. Mynatt		Systems Engineer	NeXT Computer, Inc.
USPS:		Echelon IV, Suite 400 
				9430 Research Blvd.
				Austin, Tx. 78759
Internet: Jim_Mynatt@NeXT.COM

eps@toaster.SFSU.EDU (Eric P. Scott) (06/05/91)

In article <4048@nosc.NOSC.MIL> beck@VAX309.NOSC.MIL writes:
>I would like to "find" the World Icon that automatically comes up
>to represent the directory /Net

Actually, there are THREE of them.  Explode the attachment.

>                               More generally, how does one "attach"
>an icon to a directory?

The file .dir.tiff can contain a replacement for the folder
icon.  The file .opendir.tiff (if it exists) will be shown
if the directory is "opened."  I recently posted an example
of this (the "flasher" icons).

>                        If you look in /Net, there's nothing there.

/Net is magic.  :-)  The autonfsmount daemon mounts a virtual
file system on top of it (and it will complain if /Net's not
empty).  This file system consists of a single root directory
containing symbolic links.  When autonfsmount performs a "real"
mount, the mount is actually done on /private/Net/whatever, and
the symbolic link is changed to point to that.

[If you're still running 1.0/1.0a, none of this applies.]

					-=EPS=-
-------
begin 644 net.tar.Z
M'YV0;LK0<1'&39HV+P`H7,BPH<.'$"-*G$BQ(HB+-VK4``'@XD49-#AZ!`%2
MY,B3,"[2N&%#Q@P;,VK`D.%18PP:'2OJW,FSI\^?0(,*'4JTJ-&C2)$&'%CP
MX(NE+F:XH)/&C)FD6(5ZI,'5Y,>0'3V6#'M21@T9*4&L;/DRYDR/-V;<N)$S
MJ]V[>//JW<NWK]\F30"H4$@`$<,2``*`>5A@80!`#@$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