🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2562

Help GetDiskObject() won't work with a disk icon.

#2562
From: Robert Barton
Date: Wed, 06 Dec 1989 15:38
16 lines
1276 bytes
 duncant@mbunix.mitre.org (Thomson) writes:
> First, what should I give to GetDiskObject as the icon name for a disk icon?
> ".info" will be appended to whatever I give, so if I want to get the icon
> for disk MYDISK: shouldn't I give "MYDISK:" as the argument to GDO(), 
> resulting in "MYDISK:.icon" being read?  (Doesn't work)

  The file you need to read is MYDISK:Disk.info, so you have to pass the name
"MYDISK:Disk" (even though there is no file called Disk on MYDISK:).  This is
somewhat non-orthogonal, but that's how it works.

> Second, what is the GetWBObject() function?  Should I be using this
> instead of GetDiskObject for disk icons?

  No.  GetWBObject() isn't even documented in the new autodocs, so C-A seems
to be discouraging its use.
Technical Details
Message-ID: <2048@psueea.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!psueea!jove.cs.pdx.edu!bartonr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!psueea!jove.cs.pdx.edu!bartonr
From: bartonr@jove.cs.pdx.edu (Robert Barton)
Newsgroups: comp.sys.amiga.tech
Subject: Help GetDiskObject() won't work with a disk icon.
Message-ID: <2048@psueea.UUCP>
Date: 6 Dec 89 15:38:26 GMT
Sender: news@psueea.UUCP
Reply-To: bartonr@jove.cs.pdx.edu (Robert Barton)
Organization: Dept. of Computer Science, Portland State University; Portland OR
Lines: 16