Path: utzoo!utgpu!watmath!clyde!att!rutgers!gatech!purdue!decwrl!labrea!polya!rothberg
From: rothberg@polya.Stanford.EDU (Edward Rothberg)
Newsgroups: comp.sys.mac.programmer
Subject: Passing info when transfering
Message-ID: <5446@polya.Stanford.EDU>
Date: 3 Dec 88 06:47:41 GMT
Organization: Stanford University
Lines: 18

I'm writing a piece of software which consists of three applications, with
the ability to easily transfer between them.  I need to be able to tell
if an application is started up via transfer, and if so I want to pass a
bit of information from the transfering application to the transferee.
Is there an elegant way to do this?

Right now, I use the Scrap to pass the info.  While this works fine, it
has the obnoxious side-effect of wiping out what was previously in the
scrap without the user having ever issued a command which would obviously
have this effect (i.e. Cut, Copy).  It seems that what I want to do is
put the info into the system heap, but I can't seem to figure out how to make
it identifiable once it's there.  I can't make it a simple handle, since
the application starting up won't have any way to find it.  I can't make
it a resource, since then it will get added to the resource file.  Is there
any good way to do this?

Ed Rothberg
rothberg@polya.stanford.edu