Mac->Win revisited
Thomas McGrath III
3mcgrath at adelphia.net
Wed Jul 27 22:45:08 EDT 2005
Pardon me chiming in here.
When using things like players and speech etc. it is our responsibility
to close them ourselves in our code when and if for any reason our
program is to quit. So I would put a piece of script in a on closeStack
that takes care of the player when closing.
This is because players and speech use libraries and/or QT etc. to work
and like a serial port that is opened it must be closed or problems may
occur. This is good coding practice.
Maybe you can have in each stack an on closeStack that checks if all
three (+-) stacks are closed and 'then' closes the player only if all
are closed.
HTH
Thanks
Tom
On Jul 27, 2005, at 6:23 PM, Charles Hartman wrote:
>
> On Jul 27, 2005, at 4:50 PM, Alex Tweedly wrote:
>
>> Yes it does work, exactly as I and other Windows users would expect
>> it to work. It closes the app (or window) in whose title bar you are
>> at the time (or which has focus when you do Alt-F4). That's what
>> Windows *always* does.
>
> Yes, I understand that. The problem is that after you close all (up
> to) three stacks in my app, you think you've quit the Player; but you
> haven't.
>
> I've tried out the Quit (with just an OK or Cancel), and it seems to
> work. If this thing gets more elaborate, and there's data to save,
> I'll move carefully.
>
> Thanks again.
>
> Charles
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Macintosh PowerBook G-4 OSX 10.3.9, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
2.6
Advanced Media Group
Eagle Works Art & Sculpture
Semantic Compaction Systems
Prentke Romich Company
Prentke Romich International
SCIconics, LLC
Artist
Thomas J McGrath III
3mcgrath at adelphia.net
More information about the use-livecode
mailing list