🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WBench interface programming question

#9051
From: Chuck McManis
Date: Wed, 08 Jun 1988 21:28
30 lines
1952 bytes
In article <34776@amdahl.uts.amdahl.com> (Kevin Clague) writes:
->  3.  Using the name string and the file lock (and Examine() and
->      ParentDir()) I create a string that contains the full path name
->      of my program.  This tells me where the user has put my program
->      before executing it.   Later I use this as the ToolType in any
->      project Icons that are written to disk.

Not the ToolType, should be in the DefaultTool pointer.

->  5.  When the user saves projects to disk, if the program was started
->      from the CLI, I don't create icons for it.  If started from the
->      WBench I write out icons using the freshly created tooltype
->      string created in step 3.

You should also check to see if the icon already exists, and if so *not*
overwrite it. (The user may have customized it) Also see the comment 
above about where the default tool goes. 

->  I'm a CLI kinda guy.  The WorkBench stuff is all new to me.  Is this
->the proper approach?  Am I working too hard at the ToolType stuff?
->Does the system handle this in some other kinda way?  Am I missing
->anything?  Inquiring minds WANT to know!
->  -kevin

Seems like you are right on track. Wish more people would consider it for
their programs.

--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID: <55844@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!mtunx!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!sun!pepper!cmcmanis
References: <34776@amdahl.uts.amdahl.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!mtunx!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: WBench interface programming question
Keywords: WBench Icons ToolTypes
Message-ID: <55844@sun.uucp>
Date: 8 Jun 88 21:28:06 GMT
References: <34776@amdahl.uts.amdahl.com>
Sender: news@sun.uucp
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 30