[comp.sys.mac.hypercard] openField handlers

al@crucible.UUCP (Al Evans) (04/30/91)

In a stack with a number of fields which must be validated before exit,
I am using an openField handler like this:

on openField
	global currField
	if currField is empty then
		put number of me into currField
	else
		select text of field currField
	end if
end openField

The matching closeField handlers, if the entry is acceptable, put empty
into currField.

I want to move this openField handler to the background by replacing
"number of me" with "number of the target". But the background doesn't
seem to receive the message unless I use a stub "pass openField" handler
in each field. Is this normal, or what?

Please reply by email, unless the answer is something peculiar that
everyone should know:-)
					--Al Evans--
-- 

Al Evans                                                Reality is like this:
al@crucible.uucp                                          We are born knowing
uunet!execu!sequoia!crucible!al                 the world isn't what we think.

David_Greg_Herlihy@cup.portal.com (05/01/91)

Opening file with Multifinder

When you use the command "open file x with [application]" while running
the single finder, Hypercard obediently finds the file and opens it
with the specified application (if such file exists).  What I find
annoying, however, is that this command does not seem to work if you
are running multifinder and the specified application is already opened.
Rather than opening the file, Hypercard merely switches you to whatever
file is currently opened in the application rather than the file you requested

Does anyone know how to make this command behave with multifinder?  Is
this something we can expect to go away with system 7.0 or a HyperCard upgrade
Thanks for your help.  David