[comp.sys.mac.hypercard] HC can't find newly added resources

stone@hydra.unm.edu (Andrew Stone CS.DEPT) (02/23/89)

	Here is query that has me wondering.....
	Let us say you modify a stack, using Rescopy to transport 
	needed resources. For some reason HC thinks it already knows
	what resources the stack contains, and thus does not recognize
	the new ones. Quitting HC, and restarting then lets HC find those
	XCMD's but this will be sad if I have to tell my clients that the 
	only way that their new modified stack can work is to quit and 
	start over. 

	Has anyone figured out how to get around this?

	Thanks,
			andrew

||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
||	   Andrew Stone	            ??		2 + 2 = 5;		|| 
||         stone@hydra.unm.edu	    <> 	    for sufficiently large 2    ||
||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||

aisl@uhura.cc.rochester.edu (Lawrence Landry) (02/23/89)

In article <4521@charon.unm.edu> stone@hydra.unm.edu (Andrew Stone CS.DEPT) writes:
>
>	   ...   For some reason HC thinks it already knows
>	what resources the stack contains, and thus does not recognize
>	the new ones. ...

I used to make my script look something like:

on mouseUp
  rescopy ...
  push card
  go home
  pop card
end mouseUp

This closed and then reopened the stack so that HyperCard looked at the
resources again.  If you don't want the user to see the movement, simply
lock the screen.  You may also want to set the lockMessages to true but I
don't remember if this causes a problem (since no openStack message is
generated.)

Larry Landry
University of Rochester

stone@hydra.unm.edu (Andrew Stone CS.DEPT) (02/23/89)

>
>Larry Landry
....suggestion of  going home was just the ticket:
I used "send openstack to hypercard", and the XCMD's were recognized

Thanks Larry.

andrew
||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
||	   Andrew Stone	            ??		2 + 2 = 5;		|| 
||         stone@hydra.unm.edu	    <> 	    for sufficiently large 2    ||
||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||