[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource File Strangeness



>This surprises us
>because the docs say that calling OpenResFile on a file that is already
>open will not make it the current resource file.  So, since fileB is
>already open in the case above, the  final call to OpenResFile should not
>make fileB the current
>one. 
>
>[MCL clarification--We are making trap calls, not using wrapper functions]

I've run into this before myself. I think the docs are just plain wrong.
In fact, I have written this into the margin of Inside Mac, I-115.

I think there are other undocumented situations where the toolbox
changes the CurResFile so I set it explicitly quite often,
especially before and after any change to a resource.

-Chris Eliot

>Michael Korcuska & Steven Feist
>Institute for the Learning Sciences
>Northwestern University
>korcuska@ils.nwu.edu
>
>Michael Korcuska
>Institute for the Learning Sciences
>Northwestern University
>korcuska@ils.nwu.edu